Skip to content

Commit

Permalink
fix tpe exception (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
styamamoto authored Feb 8, 2023
1 parent e5a6ddb commit b5d2a40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aiaccel/optimizer/tpe_optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b5d2a40

Please sign in to comment.