Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- X=[1 1; 2 2; 2 1; 1 2];
- Y =[1; 1; 0; 0];
- net = newff([0 3; 0 3], [30 8 1], {'tansig' 'purelin' 'purelin'}, 'trainlm');
- net =init(net);
- net.trainParam.epochs = 200;
- net.trainParam.goal=0.0000001;
- net=train(net, X', Y');
- [X1 Y1] = meshgrid(0:0.1:3);
- Z=X1;
- Z(:)=sim(net,[X1(:)'; Y1(:)']);
- surf(X1, Y1, Z);
- % cp (cytoplasm) 143 000
- % im (inner membrane without signal sequence) 77 001
- % pp (perisplasm) 52 010
- % imU (inner membrane, uncleavable signal sequence) 35 011
- % om (outer membrane) 20 100
- % omL (outer membrane lipoprotein) 5 101
- % imL (inner membrane lipoprotein) 2 110
- % imS (inner membrane, cleavable signal sequence) 2 111
- X = importdata('nowy3.txt');
- % Y =
- %load nowy3.txt
- %X = nowy3.txt;
- Y = X(:,end-2);
- X(:,end) = [];
- X(:,end) = [];
- X(:,end) = [];
- net = newff([0 1; 0 1; 0 1; 0 1; 0 1; 0 1 ; 0 1], [30 8 1], {'tansig' 'purelin' 'purelin'}, 'trainlm');
- net =init(net);
- net.trainParam.epochs = 500;
- net.trainParam.goal=0.000000001;
- net=train(net, X', Y');
- [X1 Y1] = meshgrid(0:0.1:3);
- Z=X1;
- Z(:)=sim(net,[X1(:)'; Y1(:)']);
- surf(X1, Y1, Z);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement