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 
42 namespace Pds{
43 
51 {
52 
53 public:
55  unsigned int PredictActual[2][2];
56 
58  double Precision;
59 
61  double Recall;
62 
64  double Accuracy;
65 
67  double FScore;
68 
70  double Threshold;
71 
72 
73 public:
74 
93 
94 
96 
97 
102 public:
103 
136  const Pds::Vector &Ypredict,
137  const Pds::Vector &Yactual);
138 
164  static Pds::ClassificationMetrics Optimal( const Pds::Vector &Ypredict,
165  const Pds::Vector &Yactual);
166 
167 
172 public:
173 
191  void Print(std::string str="");
192 
199 }; // Class ClassificationMetrics
200 
201 } // namespace Pds
202 
207 #endif
208 
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