Skip to content

getml.pipeline.feature

Custom representing a sole feature.

Feature dataclass

Feature(
    index: int,
    name: str,
    pipeline: str,
    target: str,
    targets: Sequence[str],
    importance: float,
    correlation: float,
    sql: SQLString,
)

Dataclass that holds data about a single feature.

PARAMETER DESCRIPTION
index

The index of the feature.

TYPE: int

name

The name of the feature.

TYPE: str

pipeline

The pipeline the feature is from.

TYPE: str

target

The target the feature is associated with.

TYPE: str

targets

The targets the feature is associated with.

TYPE: Sequence[str]

importance

The importance of the feature.

TYPE: float

correlation

The correlation of the feature with the target.

TYPE: float

sql

The SQL code of the feature.

TYPE: SQLString