def test_weights_small_fixed_theta(): w = gaussdca.compute_weights(os.path.join(base_path, 'data/small.a3m'), 0.3) assert w.shape == (13279, ) assert w.max() == 1.0 assert abs(w.min() - 0.0014727540500736377) < 1e-9 assert abs(w.mean() - 0.295421949941903) < 2e-5
def test_weights_small_auto(): w = gaussdca.compute_weights(os.path.join(base_path, 'data/small.a3m')) assert w.shape == (13279, ) assert w.max() == 1.0 assert abs(w.min() - 0.0014619883040935672) < 1e-9 assert abs(w.mean() - 0.1802026091608966) < 2e-5
def test_weights_large_fixed_theta(): w = gaussdca.compute_weights(os.path.join(base_path, 'data/large.a3m'), 0.3) assert w.shape == (35555, )
def test_weights_large_auto(): w = gaussdca.compute_weights(os.path.join(base_path, 'data/large.a3m')) assert w.shape == (35555, )