Skip to content

Learner2D suggests same point twice #30

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

Closed
basnijholt opened this issue Dec 19, 2018 · 0 comments
Closed

Learner2D suggests same point twice #30

basnijholt opened this issue Dec 19, 2018 · 0 comments

Comments

@basnijholt
Copy link
Member

(original issue on GitLab)

opened by Bas Nijholt (@basnijholt) at 2018-09-27T14:52:40.085Z

import adaptive, collections
l = adaptive.Learner2D(ring, bounds=[(-1, 1), (-1, 1)])
collections.Counter(l.ask(48)[0]).most_common(10)
[((-0.70370370370370361, -0.40740740740740744), 11),
 ((0.33333333333333331, -0.33333333333333331), 2),
 ((-0.33333333333333331, 0.33333333333333331), 2),
 ((0.11111111111111109, -0.77777777777777768), 2),
 ((0.77777777777777768, -0.11111111111111109), 2),
 ((-0.77777777777777768, 0.11111111111111109), 2),
 ((-0.11111111111111109, 0.77777777777777768), 2),
 ((0.33333333333333331, 0.33333333333333331), 2),
 ((-0.33333333333333331, -0.33333333333333331), 2),
 ((-1, -1), 1)]

This means that some points are suggested multiple times.

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

No branches or pull requests

1 participant