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

Add TransitionChoice with repetitions #696

Merged
merged 12 commits into from
May 26, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add test
  • Loading branch information
jrapin committed May 26, 2020
commit c1a9be7fdfbdd1b6c179cce238640f3cf0a28b28
2 changes: 1 addition & 1 deletion nevergrad/parametrization/test_transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def test_back_and_forth(transform: transforms.Transform, string: str) -> None:
arctan=(transforms.ArctanBound(3, 5), [-100000, 100000, 0], [3, 5, 4]),
bouncing=(transforms.Clipping(0, 10, bounce=True), [-1, 22, 3], [1, 0, 3]),
cumdensity=(transforms.CumulativeDensity(), [-10, 0, 10], [0, .5, 1]),
cumdensity_bounds=(transforms.CumulativeDensity(2, 4), [-10, 0, 10], [0, .5, 1]),
cumdensity_bounds=(transforms.CumulativeDensity(2, 4), [-10, 0, 10], [2, 3, 4]),
)
def test_vals(transform: transforms.Transform, x: List[float], expected: List[float]) -> None:
y = transform.forward(np.array(x))
Expand Down