diff --git a/aiaccel/optimizer/tpe_optimizer.py b/aiaccel/optimizer/tpe_optimizer.py index 6f0bd225..272e9247 100644 --- a/aiaccel/optimizer/tpe_optimizer.py +++ b/aiaccel/optimizer/tpe_optimizer.py @@ -226,6 +226,6 @@ def create_distributions( distributions[p.name] = optuna.distributions.CategoricalDistribution(p.sequence) else: - raise 'Unsupported parameter type' + raise TypeError('Unsupported parameter type') return distributions