kumoai.encoder.Datetime#

class kumoai.encoder.Datetime[source]#

Bases: Encoder

A Datetime encoder encodes a date or time value, representing it with various user-specified granularities.

include_minute: bool = True#

Whether to include minute-granularity features.

include_hour: bool = True#

Whether to include hour-granularity features.

include_day_of_week: bool = True#

Whether to include week-granularity features.

include_day_of_month: bool = True#

Whether to include month-granularity features.

include_day_of_year: bool = True#

Whether to include day-of-year-granularity features.

include_year: bool = True#

Whether to include year-granularity features.

__init__(include_minute=True, include_hour=True, include_day_of_week=True, include_day_of_month=True, include_day_of_year=True, include_year=True, num_year_periods=None, na_strategy=NAStrategy.ZERO, name='Datetime', _stats=<factory>, _target_='kumo.encoder.temporal.Datetime')#