Skip to content
Snippets Groups Projects
Commit db24e708 authored by Bas Nijholt's avatar Bas Nijholt
Browse files

move tests specifically for the 'LearnerND' to a seperate file

parent 0d8731fb
No related branches found
No related tags found
1 merge request!105move specific tests for a particular learner to separate files
Pipeline #12142 passed
# -*- coding: utf-8 -*-
from ..learner import LearnerND
from ..runner import replay_log
def test_faiure_case_LearnerND():
log = [
('ask', 4),
('tell', (-1, -1, -1), 1.607873907219222e-101),
('tell', (-1, -1, 1), 1.607873907219222e-101),
('ask', 2),
('tell', (-1, 1, -1), 1.607873907219222e-101),
('tell', (-1, 1, 1), 1.607873907219222e-101),
('ask', 2),
('tell', (1, -1, 1), 2.0),
('tell', (1, -1, -1), 2.0),
('ask', 2),
('tell', (0.0, 0.0, 0.0), 4.288304431237686e-06),
('tell', (1, 1, -1), 2.0)
]
learner = LearnerND(lambda *x: x, bounds=[(-1, 1), (-1, 1), (-1, 1)])
replay_log(learner, log)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment