38 Pds::Vector V={2,-1,3};
39 double W[3]={-3,-1,1};
49 Neurona1.
Print(
"\nN1:\n");
50 Neurona2.Print(
"\nN2:\n");
51 Neurona3.Print(
"\nN3:\n");
52 Neurona4.Print(
"\nN4:\n");
53 Neurona5.Print(
"\nN5:\n");
54 Neurona6.Print(
"\nN6:\n");
56 std::cout<<
"Eval5: "<<Neurona5.Predict({1,-2,1})<<std::endl;
57 std::cout<<
"Eval6: "<<Neurona6.Predict({1,-2,1})<<std::endl;
60 Neurona1.
Print(
"\nN1:\n");
61 std::cout<<
"Eval1: "<<Neurona1.
Predict({1,-2,1})<<std::endl;
63 Neurona5.ExportFile(
"filedat.txt");
68 std::cout<<
"Neurona4.GetW():"<<Neurona4.GetW().T()<<
"\n";
69 Neurona4.SetW({0,0.5,0.5});
70 std::cout<<
"Neurona4.GetW():"<<Neurona4.GetW().T()<<
"\n";
La clase tipo Pds::Perceptron . Esta clase genera una matriz de Nlin lineas y 1 columna....
double Predict(const std::initializer_list< double > list) const
Evalua el objeto de tipo Pds::Perceptron.
void Print(std::string str="") const
Imprime en pantalla el contenido del vector de pesos después del texto indicado en str.