FMT 0.9.8
Forest management tools for forest planning
|
#include <FMTyieldmodel.hpp>
Public Member Functions | |
virtual | ~FMTyieldmodel () |
FMTyieldmodel () | |
FMTyieldmodel (const FMTyieldmodel &rhs)=default | |
FMTyieldmodel & | operator= (const FMTyieldmodel &rhs)=default |
const std::string & | GetModelName () const |
const std::vector< std::string > & | GetModelYields () const |
virtual std::unique_ptr< FMTyieldmodel > | Clone () const =0 |
virtual const std::vector< double > | Predict (const Core::FMTyieldrequest &request) const =0 |
virtual std::unique_ptr< FMTyieldmodel > | presolve (const FMTmaskfilter &filter, const std::vector< FMTtheme > &newthemes) const |
virtual std::unique_ptr< FMTyieldmodel > | postsolve (const FMTmaskfilter &filter, const std::vector< FMTtheme > &basethemes) const |
virtual | operator std::string () const =0 |
virtual std::vector< std::vector< double > > | getperiodicvalues () const |
Public Member Functions inherited from Core::FMTobject | |
FMTobject () | |
virtual | ~FMTobject () |
FMTobject (const std::shared_ptr< Exception::FMTexceptionhandler > exhandler) | |
FMTobject (const FMTobject &rhs) | |
FMTobject & | operator= (const FMTobject &rhs) |
virtual void | passinlogger (const std::shared_ptr< Logging::FMTlogger > &logger) |
void | passinexceptionhandler (const std::shared_ptr< Exception::FMTexceptionhandler > &exhandler) |
void | redirectlogtofile (const std::string &location) |
virtual void | setdefaultlogger () |
virtual void | setquietlogger () |
virtual void | settasklogger () |
virtual void | setdebuglogger () |
void | setdefaultexceptionhandler () |
void | setquietexceptionhandler () |
void | setdebugexceptionhandler () |
void | setfreeexceptionhandler () |
void | disablenestedexceptions () |
void | enablenestedexceptions () |
void | seterrorstowarnings (const std::vector< Exception::FMTexc > &errors) |
void | setmaxwarningsbeforesilenced (const size_t &maxwarningcount) |
Protected Attributes | |
std::string | modelName |
std::vector< std::string > | modelYields = {} |
const std::string | JSON_PROP_MODEL_NAME = "modelFileName" |
Friends | |
class | boost::serialization::access |
Additional Inherited Members | |
Static Public Member Functions inherited from Core::FMTobject | |
static std::string | getruntimelocation () |
static unsigned long long | getavailablememory () |
Protected Member Functions inherited from Core::FMTobject | |
template<class Archive > | |
void | forcesave (Archive &ar, const unsigned int version) const |
template<class Archive > | |
void | forceload (Archive &ar, const unsigned int version) |
void | checksignals () const |
void | setCPLhandler () |
Static Protected Member Functions inherited from Core::FMTobject | |
static std::chrono::time_point< std::chrono::high_resolution_clock > | getclock () |
template<class chrono > | |
static double | getduration (const std::chrono::time_point< std::chrono::high_resolution_clock > &startclock) |
static std::string | getdurationinseconds (const std::chrono::time_point< std::chrono::high_resolution_clock > &startclock) |
Static Protected Attributes inherited from Core::FMTobject | |
static std::shared_ptr< Exception::FMTexceptionhandler > | _exhandler |
A shared pointer to the exception handler. | |
static std::shared_ptr< Logging::FMTlogger > | _logger |
A shared pointer to the logger. | |
FMTyieldmodel is an abstract class to be implemented as a machine learning model.
|
virtual |
Destructor for FMTyieldmodel.
Core::FMTyieldmodel::FMTyieldmodel | ( | ) |
Constructor for FMTyieldmodel.
|
default |
Copy constructor for FMTyieldmodel.
|
pure virtual |
Implements FMTyieldmodel::Clone().
Implemented in Core::FMTyieldmodeldecisiontree, Core::FMTyieldmodelnep, Core::FMTyieldmodelpools, and Core::FMTyieldmodelTSLA.
const std::string & Core::FMTyieldmodel::GetModelName | ( | ) | const |
Returns the model name.
const std::vector< std::string > & Core::FMTyieldmodel::GetModelYields | ( | ) | const |
Return model yields' names.
|
virtual |
Try to turn the FMTyieldmodel into periodic constant values. if returns an non empty vector then each first dimension is the yield id and each second dimension are the periodic value calculated by the yield.
Reimplemented in Core::FMTyieldmodeldecisiontree.
|
pure virtual |
When it comes to write down in a string the yield model.
Implemented in Core::FMTyieldmodeldecisiontree, Core::FMTyieldmodelnn, and Core::FMTyieldmodelTSLA.
|
default |
Default equality operator.
|
virtual |
Postsolve the yieldmodel by default it will return a clone.
Reimplemented in Core::FMTyieldmodeldecisiontree, and Core::FMTyieldmodelTSLA.
|
pure virtual |
Predict the yield
Implemented in Core::FMTyieldmodeldecisiontree, Core::FMTyieldmodelnn, and Core::FMTyieldmodelTSLA.
|
virtual |
If the FMTyieldmodel contains Core classes it also need to be presolved when presolved is called on the FMTmodel. By default it will return the same FMTyieldmodel.
Reimplemented in Core::FMTyieldmodeldecisiontree, and Core::FMTyieldmodelTSLA.
|
friend |
|
protected |
|
protected |
|
protected |