Class TimeSeriesBase
- java.lang.Object
-
- com.datarobot.prediction.internal.TimeSeriesBase
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
TimeSeriesRegressionPredictorImpl
public class TimeSeriesBase extends Object
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field 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.internal.PredictorBase.GenericEvent<ScoreEventT>
scoreEvent
protected String
seriesIdColumnName
protected String
targetName
protected Map.Entry<Integer,String>
timeStep
-
Constructor Summary
Constructors Modifier Constructor Description protected
TimeSeriesBase(TimeSeriesPredictor predictor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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
getDefaultEmptyColumnName()
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)
-
-
-
Field Detail
-
dateColumnName
protected final String dateColumnName
-
seriesIdColumnName
protected final String seriesIdColumnName
-
dateFormat
protected final String dateFormat
-
numDoubles
protected int numDoubles
-
numStrings
protected int numStrings
-
features
protected LinkedHashMap<String,Class> features
-
sanitizedFeaturesCache
protected ConcurrentHashMap<String,String> sanitizedFeaturesCache
-
modelId
protected String modelId
-
targetName
protected String targetName
-
scoreEvent
protected final com.datarobot.prediction.internal.PredictorBase.GenericEvent<ScoreEventT extends EventInfo> scoreEvent
-
-
Constructor Detail
-
TimeSeriesBase
protected TimeSeriesBase(TimeSeriesPredictor predictor)
-
-
Method Detail
-
extractFeatures
protected Row extractFeatures(Map<String,?> row)
Extracts features that are needed from initial row.- Parameters:
row
- - Map of initial feature name to its value.- Returns:
- - internal type for scoring.
-
sanitize
protected String sanitize(String name)
Some pre-processing for feature name.- Parameters:
name
- - original feature name.- Returns:
- - sanitized name.
-
getDoubleValue
protected Double getDoubleValue(String featureName, Object value)
Replaces double missing value with NaN.- Parameters:
featureName
- - name of the feature.value
- - object feature value.- Returns:
- - parsed Double value.
-
getDefaultEmptyColumnName
protected String getDefaultEmptyColumnName()
Return label for empty column.- Returns:
- - empty column name.
-
getDoubleMissingValuesLabels
protected Set<String> getDoubleMissingValuesLabels()
Returns the set of null labels.- Returns:
- - set of null labels.
-
sendScoreInfo
protected void sendScoreInfo(ScoreEventT eventInfo)
-
getDefaultParams
protected ExplanationParams getDefaultParams()
-
-