39 #ifndef GRT_ANBC_HEADER
40 #define GRT_ANBC_HEADER
43 #include "../../CoreModules/Classifier.h"
47 #define MIN_SCALE_VALUE 1.0e-10
48 #define MAX_SCALE_VALUE 1
60 ANBC(
bool useScaling=
false,
bool useNullRejection=
false,
double nullRejectionCoeff=10.0);
114 virtual bool reset();
122 virtual bool clear();
131 virtual bool save( std::fstream &file )
const;
140 virtual bool load( std::fstream &file );
189 bool clearWeights(){ weightsDataSet =
false; weightsData.clear();
return true; }
198 bool loadLegacyModelFromFile( std::fstream &file );
209 #endif // GRT_WEAK_CLASSIFIER_HEADER
virtual bool recomputeNullRejectionThresholds()
virtual bool predict_(VectorFloat &inputVector)
VectorFloat getNullRejectionThresholds() const
Vector< ANBC_Model > getModels()
virtual bool save(const std::string filename) const
This class implements a container for an ANBC model.
virtual bool load(const std::string filename)
virtual bool deepCopyFrom(const Classifier *classifier)
virtual bool setNullRejectionCoeff(Float nullRejectionCoeff)
virtual bool train_(ClassificationData &trainingData)