public final class GDBModel extends ModelsComposition<DecisionTreeModel> implements JSONWritable
models, predictionsAggregator| Constructor and Description |
|---|
GDBModel(List<? extends IgniteModel<Vector,Double>> models,
WeightedPredictionsAggregator predictionsAggregator,
IgniteFunction<Double,Double> internalToExternalLblMapping)
Creates an instance of GDBModel.
|
| Modifier and Type | Method and Description |
|---|---|
static GDBModel |
fromJSON(Path path)
Loads RandomForestModel from JSON file.
|
Double |
predict(Vector features)
Applies containing models to features and aggregate them to one prediction.
|
void |
toJSON(Path path) |
GDBModel |
withLblMapping(IgniteFunction<Double,Double> internalToExternalLblMapping) |
getDependencies, getModels, getPredictionsAggregator, saveModel, toString, toStringpublic GDBModel(List<? extends IgniteModel<Vector,Double>> models, WeightedPredictionsAggregator predictionsAggregator, IgniteFunction<Double,Double> internalToExternalLblMapping)
models - Models.predictionsAggregator - Predictions aggregator.internalToExternalLblMapping - Internal to external lbl mapping.public GDBModel withLblMapping(IgniteFunction<Double,Double> internalToExternalLblMapping)
public Double predict(Vector features)
predict in interface Model<Vector,Double>predict in class ModelsComposition<DecisionTreeModel>features - Features vector.public void toJSON(Path path)
toJSON in interface JSONWritable
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.14.0 Release Date : September 29 2022