public class ModelsComposition extends Object implements Model<Vector,Double>, Exportable<ModelsCompositionFormat>
Constructor and Description |
---|
ModelsComposition(List<? extends Model<Vector,Double>> models,
PredictionsAggregator predictionsAggregator)
Constructs a new instance of composition of models.
|
Modifier and Type | Method and Description |
---|---|
Double |
apply(Vector features)
Applies containing models to features and aggregate them to one prediction.
|
List<Model<Vector,Double>> |
getModels()
Returns containing models.
|
PredictionsAggregator |
getPredictionsAggregator()
Returns predictions aggregator.
|
<P> void |
saveModel(Exporter<ModelsCompositionFormat,P> exporter,
P path)
Save model by the given path.
|
String |
toString() |
String |
toString(boolean pretty) |
public ModelsComposition(List<? extends Model<Vector,Double>> models, PredictionsAggregator predictionsAggregator)
models
- Basic models.predictionsAggregator
- Predictions aggregator.public Double apply(Vector features)
public PredictionsAggregator getPredictionsAggregator()
public <P> void saveModel(Exporter<ModelsCompositionFormat,P> exporter, P path)
saveModel
in interface Exportable<ModelsCompositionFormat>
exporter
- Exporter.path
- Path to saved model.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2 Release Date : February 6 2019