

def test_random_state(self):
    np.random.seed(10)
    api = scot.Workspace(VAR(1), locations=[[0, 0, 1], [1, 0, 0], [0, 1, 0], [(- 1), 0, 0], [0, (- 1), 0]], reducedim=None)
    api.set_data(np.random.randn(10, 5, 10), ([1, 0] * 5))
    api.do_mvarica(random_state=1)
    mixing1 = api.mixing_
    api.do_mvarica(random_state=1)
    mixing2 = api.mixing_
    assert_array_equal(mixing1, mixing2)
    api.do_cspvarica(random_state=1)
    mixing1 = api.mixing_
    api.do_cspvarica(random_state=1)
    mixing2 = api.mixing_
    assert_array_equal(mixing1, mixing2)

dataset/ETHPy150Open scot-dev/scot/scot/tests/test_ooapi.py TestMVARICA.test_random_state/original