public class MLeapModel extends Object implements Model<NamedVector,Double>
Constructor and Description |
---|
MLeapModel(ml.combust.mleap.runtime.frame.Transformer transformer,
List<String> schema,
String outputFieldName)
Constructs a new instance of MLeap model.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
double |
predict(ml.combust.mleap.runtime.frame.DefaultLeapFrame inputFrame)
Makes a prediction using MLeap API.
|
double |
predict(Double[] input)
Makes a prediction using default column order specified in
schema . |
Double |
predict(NamedVector input)
Make a prediction for the specified input arguments.
|
public MLeapModel(ml.combust.mleap.runtime.frame.Transformer transformer, List<String> schema, String outputFieldName)
transformer
- MLpeap model (transformer in terms of MLeap).schema
- List of field names.outputFieldName
- Output field name.public Double predict(NamedVector input)
predict
in interface Model<NamedVector,Double>
input
- Input arguments.public double predict(Double[] input)
schema
.input
- Input arguments.public double predict(ml.combust.mleap.runtime.frame.DefaultLeapFrame inputFrame)
inputFrame
- Input MLeap frame.public void close()
close
in interface AutoCloseable
close
in interface Model<NamedVector,Double>
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024