from dreamtools import D3C4
from easydev.easytest import assert_list_almost_equal



def test_d3c4_10():
    # we have templates for 10 only 
    s = D3C4()
    s.test()

    aurocs = []
    for batch in ['Ecoli1', 'Ecoli2', 'Yeast1']:
        filename = s.download_template('10_'+ batch)
        print(filename)
        aurocs.append(s.score(filename, '10')['AUPR'])

    assert_list_almost_equal(aurocs,
         [0.3294927, 0.6283442, 0.368482140], 7)

    # other code
    s._warning()

534cb707448ebc892ea78f068284859698b2a523
<mask token>

<mask token>


def test_d3c4_10():
    s = D3C4()
    s.test()
    aurocs = []
    for batch in ['Ecoli1', 'Ecoli2', 'Yeast1']:
        filename = s.download_template('10_' + batch)
        print(filename)
        aurocs.append(s.score(filename, '10')['AUPR'])
    assert_list_almost_equal(aurocs, [0.3294927, 0.6283442, 0.36848214], 7)
    s._warning()

from dreamtools import D3C4
from easydev.easytest import assert_list_almost_equal


def test_d3c4_10():
    s = D3C4()
    s.test()
    aurocs = []
    for batch in ['Ecoli1', 'Ecoli2', 'Yeast1']:
        filename = s.download_template('10_' + batch)
        print(filename)
        aurocs.append(s.score(filename, '10')['AUPR'])
    assert_list_almost_equal(aurocs, [0.3294927, 0.6283442, 0.36848214], 7)
    s._warning()

from dreamtools import D3C4
from easydev.easytest import assert_list_almost_equal



def test_d3c4_10():
    # we have templates for 10 only 
    s = D3C4()
    s.test()

    aurocs = []
    for batch in ['Ecoli1', 'Ecoli2', 'Yeast1']:
        filename = s.download_template('10_'+ batch)
        print(filename)
        aurocs.append(s.score(filename, '10')['AUPR'])

    assert_list_almost_equal(aurocs,
         [0.3294927, 0.6283442, 0.368482140], 7)

    # other code
    s._warning()
