TBFPC.fit#
- TBFPC.fit(df, drivers)[source]#
Fit the TBFPC procedure to the supplied dataframe.
- Parameters:
- df
pandas.DataFrame
Dataset containing the target column and every candidate driver.
- drivers
Sequence
[str
] Iterable of column names to treat as potential drivers of the target.
- df
- 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"])