close all;
addpath('Models/','Functions/')
MODEL={'kuramoto1','kuramoto2','michaelis_menten','roessler'};
BASIS={'polynomial','polynomial_diff','fourier','fourier_diff','power_series','RBF'};
NODE=randperm(25,4);
N=25;
NI=4;
S=50;
M=5;
ORDER=6;
simulate(MODEL{4},N,NI,S,M);
figure('Name','Reconstruction of oscillators using short time series');
t=1;
for node=NODE
[list,cost,FPR,TPR,AUC]=reconstruct(MODEL{4},node,BASIS{1},ORDER);
subplot(2,2,t);
plot(FPR,TPR,'LineWidth',2.5,'Color',[0,0.7,0.9]);
title(['ROC Curve-Unit: ',num2str(node)]);
xlabel('FPR');
ylabel('TPR');
text(0.4,0.5,['AUC score=',num2str(AUC)])
t=t+1;
end
set(gcf,'Position',[0 0 1000 500])
S=5;
M=50;
simulate(MODEL{4},N,NI,S,M);
figure('Name','Reconstruction of oscillators using long time series');
t=1;
for node=NODE
[list,cost,FPR,TPR,AUC]=reconstruct(MODEL{4},node,BASIS{1},ORDER);
subplot(2,2,t);
plot(FPR,TPR,'LineWidth',2.5,'Color',[0,0.7,0.9]);
title(['ROC Curve-Unit: ',num2str(node)]);
xlabel('FPR');
ylabel('TPR');
text(0.4,0.5,['AUC score=',num2str(AUC)])
t=t+1;
end
set(gcf,'Position',[0 0 1000 500])
'rm' is not recognized as an internal or external command,
operable program or batch file.
A subdirectory or file Data already exists.
Creating network structure...
Simulating time series...
Simulation finished!
Initiating reconstruction...
Reading data...
Estimating time derivatives and constructing input matrices...
Performing ARNI...
Reconstruction has finished!
Quality of reconstruction:
1
Initiating reconstruction...
Reading data...
Estimating time derivatives and constructing input matrices...
Performing ARNI...
Reconstruction has finished!
Quality of reconstruction:
1
Initiating reconstruction...
Reading data...
Estimating time derivatives and constructing input matrices...
Performing ARNI...
Reconstruction has finished!
Quality of reconstruction:
1
Initiating reconstruction...
Reading data...
Estimating time derivatives and constructing input matrices...
Performing ARNI...
Reconstruction has finished!
Quality of reconstruction:
1
'rm' is not recognized as an internal or external command,
operable program or batch file.
A subdirectory or file Data already exists.
Creating network structure...
Simulating time series...
Simulation finished!
Initiating reconstruction...
Reading data...
Estimating time derivatives and constructing input matrices...
Performing ARNI...
Reconstruction has finished!
Quality of reconstruction:
0.7150
Initiating reconstruction...
Reading data...
Estimating time derivatives and constructing input matrices...
Performing ARNI...
Reconstruction has finished!
Quality of reconstruction:
0.6111
Initiating reconstruction...
Reading data...
Estimating time derivatives and constructing input matrices...
Performing ARNI...
Reconstruction has finished!
Quality of reconstruction:
0.5652
Initiating reconstruction...
Reading data...
Estimating time derivatives and constructing input matrices...
Performing ARNI...
Reconstruction has finished!
Quality of reconstruction:
0.6884