Medial Code Documentation
Loading...
Searching...
No Matches
model.h
Go to the documentation of this file.
1
6#ifndef XGBOOST_MODEL_H_
7#define XGBOOST_MODEL_H_
8
9namespace dmlc {
10class Stream;
11} // namespace dmlc
12
13namespace xgboost {
14
15class Json;
16
17struct Model {
18 virtual ~Model() = default;
23 virtual void LoadModel(Json const& in) = 0;
28 virtual void SaveModel(Json* out) const = 0;
29};
30
32 virtual ~Configurable() = default;
37 virtual void LoadConfig(Json const& in) = 0;
42 virtual void SaveConfig(Json* out) const = 0;
43};
44} // namespace xgboost
45
46#endif // XGBOOST_MODEL_H_
Data structure representing JSON format.
Definition json.h:357
namespace for dmlc
Definition array_view.h:12
dmlc::Stream Stream
defines stream used in rabit see definition of Stream in dmlc/io.h
Definition rabit.h:27
namespace of xgboost
Definition base.h:90
Definition model.h:31
virtual void SaveConfig(Json *out) const =0
Save configuration to JSON object.
virtual void LoadConfig(Json const &in)=0
Load configuration from JSON object.
Definition model.h:17
virtual void SaveModel(Json *out) const =0
saves the model config to a JSON object
virtual void LoadModel(Json const &in)=0
load the model from a JSON object