Class TimeSeriesBase

    • 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.
      • extractFeatures

        protected Row extractFeatures​(Iterable<?> row)
      • extractFeaturesMap

        protected Map<String,​?> extractFeaturesMap​(Iterable<?> row)
      • 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.
      • initializeModelInfo

        protected Map<String,​String> initializeModelInfo​(PredictorT predictor)
      • getPredictorMethod

        protected Method getPredictorMethod​(String methodName,
                                            Class<?>... signature)
      • sendScoreInfo

        protected void sendScoreInfo​(ScoreEventT eventInfo)