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 
90 
91 
93 
94 
99 public:
100 
122  const Pds::Vector &Ypredict,
123  const Pds::Vector &Yactual);
124 
139  static Pds::ClassificationMetrics Optimal( const Pds::Vector &Ypredict,
140  const Pds::Vector &Yactual);
141 
142 
147 public:
148 
159  void Print(std::string str="");
160 
167 }; // Class ClassificationMetrics
168 
169 } // namespace Pds
170 
175 #endif
176 
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 Dat 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 Dat de tipo Pds::ClassificationMetrics.
void Print(std::string str="")
Imprime en pantalla los datos de la estructura tipo Pds::ClassificationMetrics.
Nombre de espacio para Pds (Procesamiento Digital de Senales)

Enlaces de interés

HomePage Bazaar Download Bug report Ayuda Developer Feed