ETIA.AFS.feature_selector

class FeatureSelector(r_path: str)[source]

Bases: object

Feature selection with the MXM R package.

feature_selection(config, target_name, data_pd, dataset_name, train_idx_name=None, verbose=False)[source]

Runs the feature selection process based on the provided configuration.

run_r_script(script_path: str, data_file_path: str, target_name: str, config: Dict[str, Any], output_file: str, train_idx_name: str | None = None, verbose: bool = False) DataFrame[source]

Runs the specified R script for feature selection.

fbed(target_name: str, config: Dict[str, Any], data_file_path: str, output_file: str, train_idx_name: str | None = None, verbose: bool = False) DataFrame[source]

Runs the FBED feature selection algorithm.

ses(target_name: str, config: Dict[str, Any], data_file_path: str, output_file: str, train_idx_name: str | None = None, verbose: bool = False) DataFrame[source]

Runs the SES feature selection algorithm.

feature_selection(config: Dict[str, Any], target_name: str, data_pd: DataFrame, dataset_name: str, train_idx_name: str | None = None, verbose: bool = False) DataFrame[source]

Runs the feature selection process based on the provided configuration.