public interface StatusAnalyticsModel
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Resets a model by clearing observations and other calculations
|
Map<String,Double> |
getScores()
Returns a map of scores relevant to model (e.g.
|
void |
learn(Stream<Double[]> features,
Stream<Double> labels)
Train model with provided observations (features, labels/targets)
|
Double |
predict(Double[] feature)
Return a prediction given observation values
|
Double |
predictVariable(Integer predictVariableIndex,
Map<Integer,Double> knownVariablesWithIndex,
Double label)
Predict a feature given a known target and known predictor values (if multiple predictors are included with model)
|
Boolean |
supportsOnlineLearning()
Indicate if model supports online learning (e.g.
|
void learn(Stream<Double[]> features, Stream<Double> labels)
features - Stream of feature observation valueslabels - target observation valuesDouble predict(Double[] feature)
feature - feature observation values valuesDouble predictVariable(Integer predictVariableIndex, Map<Integer,Double> knownVariablesWithIndex, Double label)
predictVariableIndex - index of feature that we would like to predict (index should align with order provided in model learn method)knownVariablesWithIndex - a map of known predictor values with their indexes if availablelabel - known target valueBoolean supportsOnlineLearning()
Map<String,Double> getScores()
void clear()
Copyright © 2023 Apache NiFi Project. All rights reserved.