cerebral.features.drop_unwanted_inputs(data: DataFrame, input_features: list[str], target_names: list[str]) DataFrame[source]

Remove columns from the input DataFrame if they are not specified as an input feature or a target feature.

Parameters:
data: DataFrame

Data to have unwanted features removed from.

input_features: list[str]

List of names of input features.

target_names: list[str]

List of names of target features.


Last update: Feb 09, 2023