public class CaretModelLoader extends GenericRModelLoader
MachineLearningModelLoader.GenericRModelLoader| Constructor and Description |
|---|
CaretModelLoader() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
loadScriptFile(org.rosuda.REngine.Rserve.RConnection rConnection,
Path modelFilePath)
Prepares the workspace created by the
RConnection to be able to load a model and predict instances. |
List<com.feedzai.openml.provider.descriptor.fieldtype.ParamValidationError> |
validateForLoad(Path modelPath,
com.feedzai.openml.data.schema.DatasetSchema schema,
Map<String,String> params) |
loadModel, loadSchemapublic List<com.feedzai.openml.provider.descriptor.fieldtype.ParamValidationError> validateForLoad(Path modelPath, com.feedzai.openml.data.schema.DatasetSchema schema, Map<String,String> params)
validateForLoad in interface com.feedzai.openml.provider.model.MachineLearningModelLoader<ClassificationGenericRModel>validateForLoad in class GenericRModelLoaderprotected void loadScriptFile(org.rosuda.REngine.Rserve.RConnection rConnection,
Path modelFilePath)
throws com.feedzai.openml.provider.exception.ModelLoadingException
RConnection to be able to load a model and predict instances. To do
that it starts by declaring the required package and creates the three requires functions in order to be
compatible with GenericRModelLoader.loadScriptFile in class GenericRModelLoaderrConnection - connection to RServe.modelFilePath - Path of the model.com.feedzai.openml.provider.exception.ModelLoadingException - If anything goes wrong.Copyright © 2018 Feedzai. All rights reserved.