Skip to content

Commit 1739302

Browse files
committed
change to log message and log level in feature scoring
fixes #261 columns with the same value for all entries don't matter for feature scoring, so they can be ignored.
1 parent b6ac5cc commit 1739302

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ema_workbench/analysis/feature_scoring.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,7 @@ def _prepare_experiments(experiments):
6666
for column in x_nominal_columns:
6767
if np.unique(x[column]).shape == (1,):
6868
x = x.drop(column, axis=1)
69-
_logger.info(
70-
("{} dropped from analysis " "because only a single category").format(column)
71-
)
69+
_logger.debug(f"{column} dropped from analysis because it has only a single category")
7270
else:
7371
x[column] = x[column].astype("category").cat.codes
7472

0 commit comments

Comments
 (0)