You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a follow up of #38594. When adding type hints to the sample method, I ran into some problems for random_state. The reason is that numpy < 1.17.0 does not have the random.Generator class implemented. I tried to solve this with checking the numpy version with:
This is a follow up of #38594. When adding type hints to the
sample
method, I ran into some problems forrandom_state
. The reason is thatnumpy < 1.17.0
does not have therandom.Generator
class implemented. I tried to solve this with checking the numpy version with:But this resulted in:
To solve this issue we have to add typing for
random_state
.The text was updated successfully, but these errors were encountered: