26 #ifndef GRT_LOGISTIC_REGRESSION_HEADER 27 #define GRT_LOGISTIC_REGRESSION_HEADER 29 #include "../../CoreModules/Regressifier.h" 51 LogisticRegression(
const bool useScaling=
true,
const Float learningRate=0.01,
const Float minChange=1.0e-5,
const UINT batchSize=1,
const UINT maxNumEpochs=500,
const UINT minNumEpochs=1);
107 virtual bool save( std::fstream &file )
const;
116 virtual bool load( std::fstream &file );
123 UINT getMaxNumIterations()
const;
132 bool setMaxNumIterations(UINT maxNumIterations);
139 static std::string
getId();
146 inline Float sigmoid(
const Float x)
const;
147 bool loadLegacyModelFromFile( std::fstream &file );
154 static const std::string id;
159 #endif //GRT_LOGISTIC_REGRESSION_HEADER std::string getId() const
virtual bool predict_(VectorFloat &inputVector)
virtual bool save(const std::string &filename) const
virtual bool deepCopyFrom(const Regressifier *regressifier)
VectorFloat w
The weights vector.
virtual bool train_(ClassificationData &trainingData)
virtual bool load(const std::string &filename)