Optuna: AttributeError: '_BaseIntUniformDistribution' object has no attribute 'to_internal_repr'

Created on 7 Nov 2019  路  3Comments  路  Source: optuna/optuna

Hi, first of all the project is very nice, recently i have used optuna to help me to find the best performance parameters of the model in my programs, the result is good but i got some error info like this:
param_value = distribution.to_internal_repr(trial.params[param_name])
AttributeError: '_BaseIntUniformDistribution' object has no attribute 'to_internal_repr'
Setting status of trial#511 as TrialState.FAIL because of the following error: AttributeError("'_BaseIntUniformDistribution' object has no attribute 'to_internal_repr'")

I want to know why and what happend

question

All 3 comments

Thank you for reporting this problem.

Could you tell me more detailed log messages (stacktrace) or runnable Python code to reproduce this problem for further investigation?

BTW, It seems that the error is similar to https://github.com/pfnet/optuna/issues/571, so the answer to the issue may help you.

awsome!!! the problem is same as what you paste, thank you very much

Was this page helpful?
0 / 5 - 0 ratings

Related issues

himkt picture himkt  路  4Comments

CMobley7 picture CMobley7  路  3Comments

toshihikoyanase picture toshihikoyanase  路  3Comments

nyanp picture nyanp  路  3Comments

c-bata picture c-bata  路  3Comments