public interface ModelsServiceProvider
Modifier and Type | Method and Description |
---|---|
OutputRecord |
applyModel(String modelName,
Record inputRecord)
Apply a model to a record and return an output record using the default
ApplySettings . |
OutputRecord |
applyModel(String modelName,
Record inputRecord,
ApplySettings applySettings)
Apply a model to a record and return an output record with the provided
ApplySettings . |
InputStream |
explainApplyModel(String modelName,
Record inputRecord)
Apply a model to a record and return the execution trace.
|
InputStream |
exportAnnotatedSource(String modelName)
Retrieve the annotated source of a model with name
modelName . |
InputStream |
exportSource(String modelName)
Retrieve the source of a model with name
modelName . |
Set<ModelInformation> |
getModelInformation()
Returns a
Set of ModelInformation s for all available models in the ADAPA store. |
ModelInformation |
getModelInformation(String modelName)
Get information about a model with name
modelName . |
Set<String> |
getModelNames()
Returns a
Set of all model names available in ADAPA store. |
ImportResultInformation |
importSource(String sourceName,
InputStream sourceStream)
Read a source (PMML) text and, if there are no error, import the contained models to ADAPA store.
|
ImportResultInformation |
importSource(String sourceName,
InputStream sourceStream,
boolean applyCleanser)
Read a source (PMML) text and, if there are no error, import the contained models to ADAPA store.
|
void |
removeModel(String modelName)
Remove a model from ADAPA store.
|
ImportResultInformation importSource(String sourceName, InputStream sourceStream)
sourceName
- the name of the source; it is used a the (base) name for models if the PMML file itself does not
contain model names.sourceStream
- the source InputStream
.ImportResultInformation importSource(String sourceName, InputStream sourceStream, boolean applyCleanser)
false
as the third argument. When
applyCleanser
is false
, the uploaded PMML is processed as is.sourceName
- the name of the source; it is used a the (base) name for models if the PMML file itself does not
contain model names.sourceStream
- the source InputStream
.applyCleanser
- boolean indicating if cleanser needs to be applied on the pmml (default is true
)InputStream exportSource(String modelName)
modelName
.modelName
- the name of the model.InputStream
containing the source.InputStream exportAnnotatedSource(String modelName)
modelName
.modelName
- the name of the model.InputStream
containing the source annotated with warnings and/or errors if any.void removeModel(String modelName)
modelName
- the name of the model to remove.Set<String> getModelNames()
Set
of all model names available in ADAPA store.ModelInformation getModelInformation(String modelName)
modelName
.modelName
- the name of the model for which to retrieve the information.null
if no such model exists.Set<ModelInformation> getModelInformation()
Set
of ModelInformation
s for all available models in the ADAPA store.OutputRecord applyModel(String modelName, Record inputRecord)
ApplySettings
.modelName
- the name of the model to apply.inputRecord
- the record to apply the model to.OutputRecord applyModel(String modelName, Record inputRecord, ApplySettings applySettings)
ApplySettings
.modelName
- the name of the model to apply.inputRecord
- the record to apply the model to.applySettings
- the ApplySettings
to use in applying the modelInputStream explainApplyModel(String modelName, Record inputRecord)
modelName
- the name of the model to apply.inputRecord
- the record to apply the model to.Copyright © 2005–2016 Zementis, Inc.. All rights reserved.