FMT 0.9.8
Forest management tools for forest planning
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
Core::FMTyieldmodelnep Class Reference

#include <FMTyieldmodelnep.hpp>

Inheritance diagram for Core::FMTyieldmodelnep:
[legend]
Collaboration diagram for Core::FMTyieldmodelnep:
[legend]

Public Member Functions

 FMTyieldmodelnep ()=default
 
 FMTyieldmodelnep (const FMTyieldmodelnep &rhs)=default
 
FMTyieldmodelnepoperator= (const FMTyieldmodelnep &rhs)=default
 
 ~FMTyieldmodelnep ()=default
 
 FMTyieldmodelnep (const boost::property_tree::ptree &jsonProps, std::vector< std::string > &inputYields)
 
std::unique_ptr< FMTyieldmodelClone () 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
 
FMTyieldmodeloperator= (const FMTyieldmodel &rhs)=default
 
const std::string & GetModelName () const
 
const std::vector< std::string > & GetModelYields () const
 
virtual std::unique_ptr< FMTyieldmodelClone () const =0
 
virtual const std::vector< double > Predict (const Core::FMTyieldrequest &request) const =0
 
virtual std::unique_ptr< FMTyieldmodelpresolve (const FMTmaskfilter &filter, const std::vector< FMTtheme > &newthemes) const
 
virtual std::unique_ptr< FMTyieldmodelpostsolve (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)
 
FMTobjectoperator= (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.
 

Detailed Description

FMTyieldmodelpools is a machine learning model to predict carbon NEP.

Constructor & Destructor Documentation

◆ FMTyieldmodelnep() [1/3]

Core::FMTyieldmodelnep::FMTyieldmodelnep ( )
default

Default constructor.

◆ FMTyieldmodelnep() [2/3]

Core::FMTyieldmodelnep::FMTyieldmodelnep ( const FMTyieldmodelnep rhs)
default

Copy constructor.

◆ ~FMTyieldmodelnep()

Core::FMTyieldmodelnep::~FMTyieldmodelnep ( )
default

Default destructor.

◆ FMTyieldmodelnep() [3/3]

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.

Member Function Documentation

◆ Clone()

std::unique_ptr< FMTyieldmodel > Core::FMTyieldmodelnep::Clone ( ) const
virtual

◆ GetInputValues()

const std::vector< double > Core::FMTyieldmodelnep::GetInputValues ( const Graph::FMTpredictor predictor) const
virtual

Implements FMTyieldmodel::GetInputValues(const Graph::FMTpredictor& predictor).

Implements Core::FMTyieldmodelnn.

◆ GetModelType()

static std::string Core::FMTyieldmodelnep::GetModelType ( )
static

Return the modeltype of the FMTyieldmodel.

◆ operator=()

FMTyieldmodelnep & Core::FMTyieldmodelnep::operator= ( const FMTyieldmodelnep rhs)
default

Default equality operator.


The documentation for this class was generated from the following file: