34 Pds::Matrix X(Pds::Ra::TextFormat,
"../test/data_x_yinyang.txt");
35 Pds::Matrix Y(Pds::Ra::TextFormat,
"../test/data_y_yinyang.txt");
36 Pds::Matrix Ys(Y.Size());
40 Pds::FCNn NN0(
"../test/NeuralNetwork0.txt");
44 for(
unsigned int k=0;k<M;k++)
46 NN0.Training(X,Y,0.1,0.01);
50 str=
"acc: "+std::to_string(100.0*Pds::Accuracy(Ys,Y,0.1));
51 Pds::Ra::ProgressBarWithTime(32,k,M,
false,str);
55 Pds::Octave::XLabel=
"x_1";
56 Pds::Octave::YLabel=
"x_2";
57 Pds::Octave::Plot::PointsX2DY(X,Y ,
"testando.m",
"dataset_data_Y.png");
58 Pds::Octave::Plot::PointsX2DY(X,Ys,
"testando.m",
"dataset_data_Ys.png");
60 NN0.Save(
"../test/NeuralNetwork0.txt");
La clase tipo Pds::FCNn . Esta clase genera un objeto con dos parametros Nlin y Ncol....
double(* DefaultDActFunc)(double)
double(* DefaultActFunc)(double)