onlyΒΆ

Columns marked with a subrole in this submodule will only be used for the specified purpose and nothing else.

Example:
# Only the EmailDomain preprocessor will be applied
# to "emails". All other preprocessors, feature learners,
# feature selectors and predictors will ignore this column.
my_data_frame.set_subroles("emails", getml.data.subroles.only.email)

Attributes

email

A column with this subrole will only be used for the EmailDomain preprocessor and nothing else.

substring

A column with this subrole will only be used for the Substring preprocessor and nothing else.