public class TimeSeriesBase extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
dateColumnName |
protected String |
dateFormat |
protected Map.Entry<Integer,Integer> |
fdw |
protected LinkedHashMap<String,Class> |
features |
protected Map<String,Integer> |
featuresIndexes |
protected Map.Entry<Integer,Integer> |
fw |
protected String |
modelId |
protected Map<String,String> |
modelInfo |
protected int |
numDoubles |
protected int |
numStrings |
protected ConcurrentHashMap<String,String> |
sanitizedFeaturesCache |
protected com.datarobot.prediction.PredictorBase.GenericEvent<ScoreEventT> |
scoreEvent |
protected String |
seriesIdColumnName |
protected String |
targetName |
protected Map.Entry<Integer,String> |
timeStep |
Modifier | Constructor and Description |
---|---|
protected |
TimeSeriesBase(TimeSeriesPredictor predictor) |
Modifier and Type | Method and Description |
---|---|
protected Row |
extractFeatures(Iterable<?> row) |
protected Row |
extractFeatures(Map<String,?> row)
Extracts features that are needed from initial row.
|
protected Map<String,?> |
extractFeaturesMap(Iterable<?> row) |
protected ArrayList<Row> |
extractRows(ArrayList<Map<String,?>> inputs) |
protected String |
getDefaultEmptyCollumnName()
Return label for empty column.
|
protected ExplanationParams |
getDefaultParams() |
protected Set<String> |
getDoubleMissingValuesLabels()
Returns the set of null labels.
|
protected Double |
getDoubleValue(String featureName,
Object value)
Replaces double missing value with NaN.
|
protected Field |
getField(Class clazz,
String fieldName) |
protected Method |
getPredictorMethod(String methodName,
Class<?>... signature) |
protected Map<String,String> |
initializeModelInfo(PredictorT predictor) |
protected String |
sanitize(String name)
Some pre-processing for feature name.
|
protected void |
sendScoreInfo(ScoreEventT eventInfo) |
protected final String dateColumnName
protected final String seriesIdColumnName
protected final String dateFormat
protected int numDoubles
protected int numStrings
protected LinkedHashMap<String,Class> features
protected ConcurrentHashMap<String,String> sanitizedFeaturesCache
protected String modelId
protected String targetName
protected final com.datarobot.prediction.PredictorBase.GenericEvent<ScoreEventT extends EventInfo> scoreEvent
protected TimeSeriesBase(TimeSeriesPredictor predictor)
protected Row extractFeatures(Map<String,?> row)
row
- - Map of initial feature name to its value.protected String sanitize(String name)
name
- - original feature name.protected Double getDoubleValue(String featureName, Object value)
featureName
- - name of the feature.value
- - object feature value.protected String getDefaultEmptyCollumnName()
protected Set<String> getDoubleMissingValuesLabels()
protected void sendScoreInfo(ScoreEventT eventInfo)
protected ExplanationParams getDefaultParams()
Copyright © 2021. All rights reserved.