iota2.learning.utils

Utility classes for labels

Functions

i2_label_factory(label)

Generate labels object.

Classes

I2Label(*args, **kwargs)

Utility class to define labels.

I2TemporalLabel(*args, **kwargs)

Utility class to define temporal labels.

class iota2.learning.utils.I2Label(*args, **kwargs)[source]

Utility class to define labels.

feat_name: str
sensor_name: str
separator: ClassVar[str] = '_'
val_sensor_name()

Validate sensor_name and feat_name attributes, values are lowered.

class iota2.learning.utils.I2TemporalLabel(*args, **kwargs)[source]

Utility class to define temporal labels.

date: str
val_date()

Validate date attribute, returned as YYYYMMDD.

iota2.learning.utils.i2_label_factory(label)[source]

Generate labels object.

Return type:

I2Label | I2TemporalLabel