Home | Develop | Download | Contact
FuncLogisticModel.hpp
1 /*
2  * FuncLogisticModel.hpp
3  *
4  * Copyright 2018 Fernando Pujaico Rivera <fernando.pujaico.rivera@gmail.com>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19  * MA 02110-1301, USA.
20  *
21  */
22 
30 #ifndef __PDS_FUNCLOGISTICMODEL_HPP__
31 #define __PDS_FUNCLOGISTICMODEL_HPP__
32 
33 #include <string>
34 #include <list>
35 #include <Pds/Ra>
36 #include <Pds/IterationConf>
37 #include <Pds/DiagnosticCurves>
38 
48 namespace Pds{
49 
54 namespace LogisticModel{
55 
56 
83 Pds::Vector Classify(const Pds::Vector &W,const Pds::Matrix &X);
84 
85 
134 double CostCrossEntropy(const Pds::Vector &W,const Pds::Matrix &X,const Pds::Vector &Y);
135 
171 double CostMeanSquare(const Pds::Vector &W,const Pds::Matrix &X,const Pds::Vector &Y);
172 
173 
233  const Pds::Matrix &X,
234  const Pds::Vector &Y,
235  double Delta=0.0001);
236 
280 Pds::Vector FittingLogitMeanSquare( const Pds::Matrix &X,
281  const Pds::Vector &Y,
282  double Delta=0.0001);
283 
284 
343  const Pds::Matrix &X,
344  const Pds::Vector &Y,
345  const Pds::Vector &W0);
346 
423  const Pds::Matrix &X,
424  const Pds::Vector &Y,
425  const Pds::Vector &W0);
451  const Pds::Matrix &Xtr,
452  const Pds::Vector &Ytr,
453  const Pds::Matrix &Xcv,
454  const Pds::Vector &Ycv,
455  double percent);
456 
457 
458 
464 } // namespace Ml
465 
466 } // namespace Pds
467 
468 
473 #endif /* __PDS_FUNCLOGISTICMODEL_HPP__ */
La clase tipo Pds::DiagnosticCurves . Esta clase genera un bloque de datos para analizar curvas de ap...
La clase tipo Pds::IterationConf . Esta clase genera una matriz de Nlin lineas y 1 columna....
Pds::DiagnosticCurves LearningCurves(Pds::IterationConf &Conf, const Pds::Matrix &Xtr, const Pds::Vector &Ytr, const Pds::Matrix &Xcv, const Pds::Vector &Ycv, double percent)
Retorna learning curve.
Pds::Vector FittingLogitMeanSquare(Pds::IterationConf &Conf, const Pds::Matrix &X, const Pds::Vector &Y, double Delta=0.0001)
Calculo de pesos.
double CostCrossEntropy(const Pds::Vector &W, const Pds::Matrix &X, const Pds::Vector &Y)
Calculo de pesos.
double CostMeanSquare(const Pds::Vector &W, const Pds::Matrix &X, const Pds::Vector &Y)
Calculo de pesos.
Pds::Vector FittingGradientCrossEntropy(Pds::IterationConf &Conf, const Pds::Matrix &X, const Pds::Vector &Y, const Pds::Vector &W0)
Gradiente descendente para sigmoide.
Pds::Vector FittingGradientSVM(Pds::IterationConf &Conf, const Pds::Matrix &X, const Pds::Vector &Y, const Pds::Vector &W0)
Gradiente descendente para sigmoide.
Pds::Vector Classify(const Pds::Vector &W, const Pds::Matrix &X)
Calculo del resultado del clasificador.
Nombre de espacion para PDS (Procesamiento Digital de Senales)

Enlaces de interés

HomePage Bazaar Download Bug report Ayuda Developer Feed