xgboost

Public Member Functions | List of all members
xgboost::Model Struct Referenceabstract

`#include <model.h>`

Inheritance diagram for xgboost::Model:
Collaboration diagram for xgboost::Model:

## Public Member Functions
virtual | ~Model ()=default
virtual void | LoadModel (Json const &in)=0
| load the model from a json object More...
virtual void | SaveModel (Json *out) const =0
| saves the model config to a json object More...

## Constructor & Destructor Documentation

## ◆ ~Model()

virtual xgboost::Model::~Model | ( |  | ) |
| virtual default

## Member Function Documentation

## ◆ LoadModel()

virtual void xgboost::Model::LoadModel | ( | Json const & | in | ) |
| pure virtual

load the model from a json object

Parameters

  in | json object where to load the model from

Implemented in xgboost::Learner, and xgboost::RegTree.

## ◆ SaveModel()

virtual void xgboost::Model::SaveModel | ( | Json * | out | ) | const
| pure virtual

saves the model config to a json object

Parameters

  out | json container where to save the model to

Implemented in xgboost::Learner, and xgboost::RegTree.

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

- /home/runner/work/xgboost/xgboost/include/xgboost/model.h