42 Pds::Matrix X(Pds::Ra::TextFormat,
"../test/hard2-data-x.txt");
43 Pds::Vector Y(Pds::Ra::TextFormat,
"../test/hard2-data-y.txt");
53 Pds::Vector d=Y.BalancedBinaryWeight(0.5);
61 W.T().Print(
"W_ms_conf:\n");
63 Pds::Octave::XLabel=
"x_1";
64 Pds::Octave::YLabel=
"x_2";
65 Pds::Octave::Plot::PointsX2DYW(X,Y,W,
"testando.m",
"example_logisticregression_meansquare_hard_ms-conf.png");
69 W.T().Print(
"W_ms:\n");
71 Pds::Octave::Plot::PointsX2DYW(X,Y,W,
"testando.m",
"example_logisticregression_meansquare_hard_ms.png");
79 W.T().Print(
"W_ms_conf:\n");
81 Pds::Octave::Plot::PointsX2DYW(X,Y,W,
"testando.m",
"example_logisticregression_meansquare_hard_wms-conf.png");
85 W.T().Print(
"W_ms_w:\n");
87 Pds::Octave::Plot::PointsX2DYW(X,Y,W,
"testando.m",
"example_logisticregression_meansquare_hard_wms.png");
La clase tipo Pds::IterationConf . Esta clase genera una matriz de Nlin lineas y 1 columna....
bool SetAlpha(double Alpha)
Coloca el valor alpha.
bool SetMinError(double MinError)
Coloca el valor MinError.
Pds::Vector FittingLogitMeanSquare(Pds::IterationConf &Conf, const Pds::Matrix &X, const Pds::Vector &Y, double Delta=0.0001)
Calculo de pesos.
Pds::Vector FittingLogitWeightedMeanSquare(Pds::IterationConf &Conf, const Pds::Matrix &X, const Pds::Vector &Y, const Pds::Vector &D, double Delta=0.0001)
Calculo de pesos.