ColumnRole

class lightautoml.dataset.roles.ColumnRole[source]

Bases: object

Abstract class for column role.

Role type defines column dtype, place of column in dataset and transformers and set additional attributes which impacts on the way how it’s handled.

dtype

alias of object

property name

Get str role name.

Return type

str

Returns

str role name.

static from_string(name, **kwargs)[source]

Create default params role from string.

Parameters

name (str) – Role name.

Return type

ColumnRole

Returns

Corresponding role object.