mixmod  3.2.0
Mixture models for clustering and classification
 All Classes Namespaces Files Functions Variables Enumerations Friends
LearnModelOutput.h
1 /***************************************************************************
2  SRC/mixmod/DiscriminantAnalysis/Learn/LearnModelOutput.h description
3  copyright : (C) MIXMOD Team - 2001-2016
4  email : contact@mixmod.org
5  ***************************************************************************/
6 
7 /***************************************************************************
8  This file is part of MIXMOD
9 
10  MIXMOD is free software: you can redistribute it and/or modify
11  it under the terms of the GNU General Public License as published by
12  the Free Software Foundation, either version 3 of the License, or
13  (at your option) any later version.
14 
15  MIXMOD is distributed in the hope that it will be useful,
16  but WITHOUT ANY WARRANTY; without even the implied warranty of
17  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  GNU General Public License for more details.
19 
20  You should have received a copy of the GNU General Public License
21  along with MIXMOD. If not, see <http://www.gnu.org/licenses/>.
22 
23  All informations available on : http://www.mixmod.org
24 ***************************************************************************/
25 #ifndef XEMLEARNMODELOUTPUT_H
26 #define XEMLEARNMODELOUTPUT_H
27 
28 #include "mixmod/Kernel/IO/ModelOutput.h"
29 
30 namespace XEM {
31 
32 // pre-declaration
33 class Model;
34 
41 class LearnModelOutput : public ModelOutput {
42 
43 public:
44 
47 
49  LearnModelOutput(Model * estimation);
50 
52  LearnModelOutput(ModelType & modelType, int64_t nbCluster,
53  std::vector<CriterionOutput*> & criterionOutput, double likelihood,
54  ParameterDescription & parameterDescription, LabelDescription & labelDescription,
55  ProbaDescription & probaDescription);
56 
58  LearnModelOutput(ModelType & modelType, int64_t nbCluster, Exception& error);
59 
61  LearnModelOutput(const LearnModelOutput & cModelOutput);
62 
63 
65  virtual ~LearnModelOutput();
66 
67 
69  void setCVLabel(Model * estimation, std::vector<int64_t> & cvLabel);
70 
72  const LabelDescription * getCVLabel() const;
73 
74 private:
75 
76  // label from CV criterion
77  LabelDescription * _CVLabel;
78 };
79 
81  return _CVLabel;
82 }
83 
84 }
85 
86 #endif
Definition: ModelOutput.h:52
Definition: LabelDescription.h:43
Base class for ModelType(s)
Definition: ModelType.h:37
Definition: ProbaDescription.h:43
LearnModelOutput()
Default Constructor.
Definition: LearnModelOutput.cpp:35
Definition: Exception.h:42
const LabelDescription * getCVLabel() const
get CV Label
Definition: LearnModelOutput.h:80
Definition: Model.h:50
virtual ~LearnModelOutput()
Destructor.
Definition: LearnModelOutput.cpp:75
Definition: ParameterDescription.h:44
void setCVLabel(Model *estimation, std::vector< int64_t > &cvLabel)
set CV Labels
Definition: LearnModelOutput.cpp:80
Definition: LearnModelOutput.h:41