TBFPC.fit#

TBFPC.fit(df, drivers)[source]#

Fit the TBFPC procedure to the supplied dataframe.

Parameters:
dfpandas.DataFrame

Dataset containing the target column and every candidate driver.

driversSequence[str]

Iterable of column names to treat as potential drivers of the target.

Returns:
TBFPC

The fitted instance (self) with internal adjacency structures populated.

Examples

model = TBFPC(target="Y", target_edge_rule="fullS")
model.fit(df, drivers=["A", "B", "C"])