コード例 #1
0
ファイル: test_dependencies.py プロジェクト: Autoplectic/dit
def test_stacked3():
    """
    Test against known values.
    """
    i = intrinsic_mutual_information(stacked, [[0], [1]], [2])
    assert i == pytest.approx(1/3)
コード例 #2
0
ファイル: test_dependencies.py プロジェクト: psychon7/dit
def test_stacked3():
    """
    Test against known values.
    """
    i = intrinsic_mutual_information(stacked, [[0], [1]], [2])
    assert i == pytest.approx(1 / 3)