FMT 0.9.8
Forest management tools for forest planning
|
#include <FMTyieldmodelnep.hpp>
Public Member Functions | |
FMTyieldmodelnep ()=default | |
FMTyieldmodelnep (const FMTyieldmodelnep &rhs)=default | |
FMTyieldmodelnep & | operator= (const FMTyieldmodelnep &rhs)=default |
~FMTyieldmodelnep ()=default | |
FMTyieldmodelnep (const boost::property_tree::ptree &jsonProps, std::vector< std::string > &inputYields) | |
std::unique_ptr< FMTyieldmodel > | Clone () const |
const std::vector< double > | GetInputValues (const Graph::FMTpredictor &predictor) const |
Public Member Functions inherited from Core::FMTyieldmodelnn | |
virtual | ~FMTyieldmodelnn () |
FMTyieldmodelnn ()=default | |
FMTyieldmodelnn (const FMTyieldmodelnn &rhs) | |
const std::vector< double > | Predict (const Core::FMTyieldrequest &request) const |
virtual | operator std::string () const |
Public Member Functions inherited from Core::FMTyieldmodel | |
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) |
Static Public Member Functions | |
static std::string | GetModelType () |
Static Public Member Functions inherited from Core::FMTobject | |
static std::string | getruntimelocation () |
static unsigned long long | getavailablememory () |
Additional Inherited Members | |
Protected Member Functions inherited from Core::FMTyieldmodelnn | |
void | ValidateInputYields (std::vector< std::string > &expectedYields, std::vector< std::string > &inputYields) const |
const std::string & | GetModelType () const |
const std::vector< float > & | GetStandardParamMeans () const |
const std::vector< float > & | GetStandardParamVars () const |
const std::vector< std::string > & | GetModelOutputNames () const |
virtual const std::vector< double > | GetInputValues (const Graph::FMTpredictor &predictor) const =0 |
const void | RemoveNans (std::vector< float > &input) const |
FMTyieldmodelnn (const boost::property_tree::ptree &jsonProps, std::vector< std::string > &inputYields) | |
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::FMTyieldmodelnn | |
static const std::vector< std::string > | GetNextLineAndSplitIntoTokens (std::istream &str) |
static const std::vector< float > | Standardize (std::vector< float > &input, const std::vector< float > &means, const std::vector< float > &vars) |
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) |
Protected Attributes inherited from Core::FMTyieldmodelnn | |
std::unique_ptr< Ort::Session > | sessionPtr |
const std::string | JSON_PROP_MODEL_TYPE = "modelType" |
const std::string | JSON_PROP_MODEL_YIELDS = "modelYields" |
const std::string | JSON_PROP_MODEL_OUTPUTS = "outputNames" |
const std::string | JSON_PROP_STAND_FILE_PATH = "csvStandardisationFile" |
std::string | modelType |
std::vector< float > | standardParamMeans = {} |
std::vector< float > | standardParamVars = {} |
std::vector< std::string > | modelOutputs = {} |
Protected Attributes inherited from Core::FMTyieldmodel | |
std::string | modelName |
std::vector< std::string > | modelYields = {} |
const std::string | JSON_PROP_MODEL_NAME = "modelFileName" |
Static Protected Attributes inherited from Core::FMTyieldmodelnn | |
static std::unique_ptr< Ort::Env > | envPtr |
static const float | UNKNOWN_DISTURBANCE_CODE |
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. | |
FMTyieldmodelpools is a machine learning model to predict carbon NEP.
|
default |
Default constructor.
|
default |
Copy constructor.
|
default |
Default destructor.
Core::FMTyieldmodelnep::FMTyieldmodelnep | ( | const boost::property_tree::ptree & | jsonProps, |
std::vector< std::string > & | inputYields | ||
) |
Construct a FMTyieldmodelnep based on a JSON file and an input yield name list.
|
virtual |
Implements FMTyieldmodel::Clone().
Implements Core::FMTyieldmodel.
|
virtual |
Implements FMTyieldmodel::GetInputValues(const Graph::FMTpredictor& predictor).
Implements Core::FMTyieldmodelnn.
|
static |
Return the modeltype of the FMTyieldmodel.
|
default |
Default equality operator.