Documentation
¶
Index ¶
Constants ¶
View Source
const ( // TENSORFLOW is the mode type that trained by TensorFlow. TENSORFLOW = iota // XGBOOST is the model type that trained by XGBoost models. XGBOOST // PAIML is the model type that trained by PAI machine learning algorithm toolkit PAIML )
Variables ¶
This section is empty.
Functions ¶
func DumpDBModel ¶
DumpDBModel dumps a model tarball from database to local file system and return the file name
Types ¶
type Model ¶
type Model struct { TrainSelect string // TrainSelect is gob-encoded during I/O. Meta *simplejson.Json // Meta json object // contains filtered or unexported fields }
Model represent a trained model, which could be saved to a filesystem or sqlfs.
func ExtractMetaFromTarball ¶
ExtractMetaFromTarball extract metadata from given tarball and return the metadata json string. This function do not unzip the whole model tarball
func Load ¶
Load unzip a saved model to a directory on the local filesystem. When dst=="", we do not unzip model data, just extract the model meta
func (*Model) GetMetaAsString ¶
GetMetaAsString return specified metadata as string
Click to show internal directories.
Click to hide internal directories.