public final class MultiClassModel<M extends IgniteModel<Vector,Double>> extends Object implements IgniteModel<Vector,Double>, Exportable<MultiClassModel>, Serializable
Constructor and Description |
---|
MultiClassModel() |
Modifier and Type | Method and Description |
---|---|
void |
add(double clsLb,
M mdl)
Adds a specific binary classifier to the bunch of same classifiers.
|
boolean |
equals(Object o) |
Optional<M> |
getModel(Double clsLb) |
int |
hashCode() |
Double |
predict(Vector input)
Make a prediction for the specified input arguments.
|
<P> void |
saveModel(Exporter<MultiClassModel,P> exporter,
P path)
Save model by the given path.
|
String |
toString() |
String |
toString(boolean pretty) |
public void add(double clsLb, M mdl)
clsLb
- The class label for the added model.mdl
- The model.public Optional<M> getModel(Double clsLb)
clsLb
- Class label.public <P> void saveModel(Exporter<MultiClassModel,P> exporter, P path)
saveModel
in interface Exportable<MultiClassModel>
exporter
- Exporter.path
- Path to saved model.public String toString(boolean pretty)
toString
in interface IgniteModel<Vector,Double>
pretty
- Use pretty mode.
GridGain In-Memory Computing Platform : ver. 8.9.14 Release Date : November 5 2024