How to use the susi.decreasing_rate function in susi

To help you get started, we’ve selected a few susi 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 felixriese / susi / tests / test_SOMClustering.py View on Github external
def test_decreasing_rate(a_1, a_2, max_it, curr_it, mode, expected):
    if mode == "testerror":
        with pytest.raises(Exception):
            assert susi.decreasing_rate(
                a_1, a_2, max_it, curr_it, mode) == expected

    else:
        assert susi.decreasing_rate(
            a_1, a_2, max_it, curr_it, mode) == expected
github felixriese / susi / tests / test_SOMClustering.py View on Github external
def test_decreasing_rate(a_1, a_2, max_it, curr_it, mode, expected):
    if mode == "testerror":
        with pytest.raises(Exception):
            assert susi.decreasing_rate(
                a_1, a_2, max_it, curr_it, mode) == expected

    else:
        assert susi.decreasing_rate(
            a_1, a_2, max_it, curr_it, mode) == expected