예제 #1
0
def test_effective_sample_size():
    x = np.arange(1000.0).reshape(100, 10)
    assert_allclose(effective_sample_size(x), 52.64, atol=0.01)
예제 #2
0
파일: fit.py 프로젝트: pyro-ppl/brmp
def effective_sample_size(samples):
    if samples.shape[1] < 2:
        return None  # Too few samples.
    else:
        return diags.effective_sample_size(samples)