Seasonal¶
-
class
getml.preprocessors.
Seasonal
[source]¶ Bases:
getml.preprocessors.preprocessor._Preprocessor
The Seasonal preprocessor extracts seasonal data from time stamps.
The preprocessor automatically iterates through all time stamps in any data frame and extracts seasonal parameters.
These include:
year
month
weekday
hour
minute
The algorithm also evaluates the potential usefulness of any extracted seasonal parameter. Parameters that are unlikely to be useful are not included.
- Example:
seasonal = getml.preprocessors.Seasonal() pipe = getml.Pipeline( population=population_placeholder, peripheral=[order_placeholder, trans_placeholder], preprocessors=[seasonal], feature_learners=[feature_learner_1, feature_learner_2], feature_selectors=feature_selector, predictors=predictor, share_selected_features=0.5 )
Methods Summary
validate
([params])Checks both the types and the values of all instance variables and raises an exception if something is off.
Methods Documentation