docs/apis/MLModel_en.md
MLModel is the complete model of a machine-learning algorithm. It serves as the base class for all machine learning models on Angel. A complex machine-learning algorithm usually needs multiple PSModel to work together, and MLModel provides unified handling of these PSModels.
MLModel is an abstract class and needs to be inherited in implementing a specific machine-learning algorithm. It is a container class that handles all the PSModels in the algorithm; all the PSModels in it will be loaded, trained and saved as an overall model. In addition, MLModel contains the logic of the predict method.
predict
def predict(storage: DataBlock[predictType]): DataBlock[PredictResult]setSavePath
def setSavePath(conf: Configuration)setLoadPath
def setLoadPath(conf: Configuration)addPSModel
def addPSModel(name: String, psModel: PSModel[_])getPSModel
def getPSModel(name: String): PSModel[_]