Medial Code Documentation
Loading...
Searching...
No Matches
Public Member Functions
dmlc::Serializable Class Referenceabstract

interface for serializable objects More...

#include <io.h>

Inheritance diagram for dmlc::Serializable:
rabit::c_api::ReadWrapper rabit::c_api::WriteWrapper xgboost::Learner xgboost::LearnerConfiguration xgboost::LearnerIO xgboost::LearnerImpl

Public Member Functions

virtual ~Serializable ()
 virtual destructor
 
virtual void Load (Stream *fi)=0
 load the model from a stream
 
virtual void Save (Stream *fo) const =0
 saves the model to a stream
 

Detailed Description

interface for serializable objects

Member Function Documentation

◆ Load()

virtual void dmlc::Serializable::Load ( Stream fi)
pure virtual

load the model from a stream

Parameters
fistream where to load the model from

Implemented in xgboost::LearnerIO, rabit::c_api::WriteWrapper, and rabit::c_api::ReadWrapper.

◆ Save()

virtual void dmlc::Serializable::Save ( Stream fo) const
pure virtual

saves the model to a stream

Parameters
fostream where to save the model to

Implemented in xgboost::LearnerIO, rabit::c_api::ReadWrapper, and rabit::c_api::WriteWrapper.


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