Merge pull request #471 from c-bata/improve-warning-message-optuna-fast-fanova

Improve warning message of optuna-fast-fanova
This commit is contained in:
c-bata
2023-05-25 13:27:54 +09:00
committed by GitHub
+2 -2
View File
@@ -21,8 +21,8 @@ try:
from optuna_fast_fanova import FanovaImportanceEvaluator as FastFanovaImportanceEvaluator
except ModuleNotFoundError:
FastFanovaImportanceEvaluator = None # type: ignore
except Exception:
_logger.exception("Failed to import optuna-fast-fanova")
except Exception as e:
_logger.warning(f"Skipping to use optuna-fast-fanova due to {e}")
FastFanovaImportanceEvaluator = None # type: ignore