close all;
addpath('Models/','Functions/')
MODEL={'kuramoto1','kuramoto2','michaelis_menten','roessler'};
BASIS={'polynomial','polynomial_diff','fourier','fourier_diff','power_series','RBF'};
NAMES={'Polynomial','Polynomial Diff','Fourier','Fourier Diff','Power Series','Radial Basis Function'};
N=25;
NI=4;
S=30;
M=10;
NODE=15;
ORDER=6;
simulate(MODEL{2},N,NI,S,M);
figure('Name',['Reconstruction with different basis for ', MODEL{2}]);
for i=1:length(BASIS)
[list,cost,FPR,TPR,AUC]=reconstruct(MODEL{2},NODE,BASIS{i},ORDER);
subplot(2,3,i);
plot(cost,'-o','LineWidth',2.5,'Color',[0,0.7,0.9],'MarkerFaceColor',[0,0.7,0.9]);
title({['Fitting Costs: ',NAMES{i}],['AUC=',num2str(AUC)]});
xlabel('# Inferred Interaction');
ylabel('Cost');
end
set(gcf,'Position',[0 0 1000 500])
simulate(MODEL{3},N,NI,S,M);
figure('Name',['Reconstruction with different basis for ', MODEL{3}]);
for i=1:length(BASIS)
[list,cost,FPR,TPR,AUC]=reconstruct(MODEL{3},NODE,BASIS{i},ORDER);
subplot(2,3,i);
plot(cost,'-o','LineWidth',2.5,'Color',[0,0.7,0.9],'MarkerFaceColor',[0,0.7,0.9]);
title({['Fitting Costs: ',NAMES{i}],['AUC=',num2str(AUC)]});
xlabel('# Inferred Interactions');
ylabel('Cost');
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:
0.3095
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:
0.2262
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:
0.9881
'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:
0.3550
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:
0.3850
Initiating reconstruction...
Reading data...
Estimating time derivatives and constructing input matrices...
Performing ARNI...
Reconstruction has finished!
Quality of reconstruction:
0.8000
Initiating reconstruction...
Reading data...
Estimating time derivatives and constructing input matrices...
Performing ARNI...
Reconstruction has finished!
Quality of reconstruction:
1