evalml.pipelines.components.DateTimeFeaturizer.__init__

DateTimeFeaturizer.__init__(features_to_extract=None, encode_as_categories=False, random_state=0, **kwargs)[source]

Extracts features from DateTime columns

Parameters
  • features_to_extract (list) – List of features to extract. Valid options include “year”, “month”, “day_of_week”, “hour”.

  • encode_as_categories (bool) – Whether day-of-week and month features should be encoded as pandas “category” dtype. This allows OneHotEncoders to encode these features.

  • random_state (int) – Seed for the random number generator. Defaults to 0.