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

ImportError: cannot import name 'RandomSampling' #9

Open
LiuJia68 opened this issue Aug 16, 2019 · 1 comment
Open

ImportError: cannot import name 'RandomSampling' #9

LiuJia68 opened this issue Aug 16, 2019 · 1 comment

Comments

@LiuJia68
Copy link

There are BinaryRandomSampling and FloatRandomSampling, but there is no 'RandomSampling'

@mikelzc1990
Copy link
Collaborator

The integer option in RandomSampling is replaced with IntegerFromFloatSampling method in the release version of pymoo==0.3.1. I was on the development branch of pymoo==0.3.1 and I was not aware of the inconsistency when specifying the version. Please use pymoo==0.3.0 or update the sampling name in the newer version. Sorry about the confusion.

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

2 participants