cerebral.features.calculate_features(data: DataFrame, input_features: list[str] = [], targets: list[dict] = [], drop_correlated_features: bool = True, required_features: list[str] = [], merge_duplicates: bool = True, drop_na: bool = True)[source]

Calculates features for a data set of alloy compositions.

Parameters:
data: DataFrame

The data set of alloy compositions.

drop_correlated_features: bool = True

If True, pairs of correlated feautres will be culled.

required_features: list[str] = []

List of required feature names to calculate.

merge_duplicates: bool = True

If True, duplicate alloy compositions will be combined.

model

If provided, obtain feature names from existing model inputs.


Last update: Feb 09, 2023