Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: module 'mkl_random' has no attribute 'RandomState' #44

Open
sky-y11 opened this issue Jul 10, 2024 · 0 comments
Open

AttributeError: module 'mkl_random' has no attribute 'RandomState' #44

sky-y11 opened this issue Jul 10, 2024 · 0 comments

Comments

@sky-y11
Copy link

sky-y11 commented Jul 10, 2024

The examples you give:

import mkl_random
rs = mkl_random.RandomState(seed=777, brng="MT19937")

The following error pops up after I run it:
AttributeError: module 'mkl_random' has no attribute 'RandomState'

I changed one of the import methods after I tried it and it worked:

from mkl_random import mklrand
rs = mklrand.RandomState(seed=777, brng="MT19937")
random_integers = rs.randint(0, 10, size=10)

I don't know if that's right. Maybe you should update the documentation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant