Skip to content

Commit

Permalink
change to log message and log level in feature scoring
Browse files Browse the repository at this point in the history
fixes #261

columns with the same value for all entries don't matter for feature scoring, so they can be ignored.
  • Loading branch information
quaquel committed Nov 20, 2023
1 parent b6ac5cc commit 1739302
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ema_workbench/analysis/feature_scoring.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,7 @@ def _prepare_experiments(experiments):
for column in x_nominal_columns:
if np.unique(x[column]).shape == (1,):
x = x.drop(column, axis=1)
_logger.info(
("{} dropped from analysis " "because only a single category").format(column)
)
_logger.debug(f"{column} dropped from analysis because it has only a single category")
else:
x[column] = x[column].astype("category").cat.codes

Expand Down

0 comments on commit 1739302

Please sign in to comment.