31 #ifndef GRT_REGRESSIFIER_HEADER 32 #define GRT_REGRESSIFIER_HEADER 35 #include "../DataStructures/ClassificationData.h" 36 #include "../DataStructures/TimeSeriesClassificationData.h" 40 #define DEFAULT_NULL_LIKELIHOOD_VALUE 0 41 #define DEFAULT_NULL_DISTANCE_VALUE 0 72 bool copyBaseVariables(
const Regressifier *regressifier);
80 virtual bool reset()
override;
87 virtual bool clear()
override;
154 GRT_DEPRECATED_MSG(
"createInstanceFromString(id) is deprecated, use create(id) instead.",
static Regressifier* createInstanceFromString(
const std::string &
id ) );
155 GRT_DEPRECATED_MSG(
"getRegressifierType is deprecated, use getId() instead", std::string getRegressifierType()
const );
172 std::string regressifierType;
177 static StringRegressifierMap *getMap() {
178 if( !stringRegressifierMap ){ stringRegressifierMap =
new StringRegressifierMap; }
179 return stringRegressifierMap;
183 static StringRegressifierMap *stringRegressifierMap;
184 static UINT numRegressifierInstances;
188 template<
typename T >
195 template<
typename T >
199 getMap()->insert( std::pair< std::string,
Regressifier*(*)() >(newRegresionModuleName, &createNewRegressionInstance< T > ) );
205 #endif //GRT_REGRESSIFIER_HEADER bool saveBaseSettingsToFile(std::fstream &file) const
std::map< std::string, Regressifier *(*)() > StringRegressifierMap
Regressifier * createNewRegressionInstance()
Returns a pointer to a new instance of the template class, the caller is responsible for deleting the...
This class provides an interface for classes to register themselves with the regressifier base class...
virtual bool deepCopyFrom(const Regressifier *regressifier)
bool loadBaseSettingsFromFile(std::fstream &file)
GRT_DEPRECATED_MSG("saveModelToFile(std::string filename) is deprecated, use save(const std::string &filename) instead", virtual bool saveModelToFile(const std::string &filename) const )
This is the main base class that all GRT machine learning algorithms should inherit from...