Home | Develop | Download | Contact
ClassificationMetrics.hpp
1 /*
2  * ClassificationMetrics.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 
28 #ifndef __PDS_CLASSIFICATIONMETRICS_HPP__
29 #define __PDS_CLASSIFICATIONMETRICS_HPP__
30 
41 namespace Pds{
42 
50 {
51 
52 public:
54  unsigned int PredictActual[2][2];
55 
57  double Precision;
58 
60  double Recall;
61 
63  double Accuracy;
64 
66  double FScore;
67 
69  double Threshold;
70 
71 
72 public:
73 
83 
84 
86 
87 
92 public:
93 
108  const Pds::Vector &Ypredict,
109  const Pds::Vector &Yactual);
110 
118  static Pds::ClassificationMetrics Optimal( const Pds::Vector &Ypredict,
119  const Pds::Vector &Yactual);
120 
121 
126 public:
127 
138  void Print(std::string str="");
139 
146 }; // Class ClassificationMetrics
147 
148 } // namespace Pds
149 
154 #endif
155 
La clase tipo Pds::ClassificationMetrics . Esta clase genera un bloque de datos para analizar curvas ...
static Pds::ClassificationMetrics Calculate(double Threshold, const Pds::Vector &Ypredict, const Pds::Vector &Yactual)
Crea un objeto de tipo Pds::ClassificationMetrics.
ClassificationMetrics(void)
Crea un objeto vazio de tipo Pds::ClassificationMetrics.
static Pds::ClassificationMetrics Optimal(const Pds::Vector &Ypredict, const Pds::Vector &Yactual)
Crea un objeto de tipo Pds::ClassificationMetrics.
void Print(std::string str="")
Imprime en pantalla los datos de la estructura tipo Pds::ClassificationMetrics.
Nombre de espacion para PDS (Procesamiento Digital de Senales)

Enlaces de interés

HomePage Bazaar Download Bug report Ayuda Developer Feed