How to use the poutyne.framework.callbacks.policies.cosinespace function in Poutyne

To help you get started, we’ve selected a few Poutyne examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github GRAAL-Research / poutyne / tests / framework / callbacks / test_policies.py View on Github external
def test_cosinespace_increasing(self):
        self.assert_space(cosinespace(0, 1, 2), [0, 1])
        self.assert_space(cosinespace(0, 1, 3), [0, .5, 1])
github GRAAL-Research / poutyne / tests / framework / callbacks / test_policies.py View on Github external
def test_cosinespace_const(self):
        self.assert_space(cosinespace(0, 0, 2), [0, 0])
github GRAAL-Research / poutyne / tests / framework / callbacks / test_policies.py View on Github external
def test_cosinespace_decreasing(self):
        self.assert_space(cosinespace(1, 0, 2), [1, 0])
        self.assert_space(cosinespace(1, 0, 3), [1, .5, 0])
github GRAAL-Research / poutyne / tests / framework / callbacks / test_policies.py View on Github external
def test_cosinespace_with_many_values(self):
        self.assert_space(cosinespace(0, 1, 5), [0, .1464, .5, .8535, 1])
        self.assert_space(cosinespace(1, 0, 5), [1, .8535, .5, .1464, 0])
github GRAAL-Research / poutyne / tests / framework / callbacks / test_policies.py View on Github external
def test_cosinespace_with_many_values(self):
        self.assert_space(cosinespace(0, 1, 5), [0, .1464, .5, .8535, 1])
        self.assert_space(cosinespace(1, 0, 5), [1, .8535, .5, .1464, 0])
github GRAAL-Research / poutyne / tests / framework / callbacks / test_policies.py View on Github external
def test_cosinespace_increasing(self):
        self.assert_space(cosinespace(0, 1, 2), [0, 1])
        self.assert_space(cosinespace(0, 1, 3), [0, .5, 1])
github GRAAL-Research / poutyne / tests / framework / callbacks / test_policies.py View on Github external
def test_cosinespace_decreasing(self):
        self.assert_space(cosinespace(1, 0, 2), [1, 0])
        self.assert_space(cosinespace(1, 0, 3), [1, .5, 0])