Closed ajaysaini725 closed 6 years ago
__________________________________________________________________________________________ test_dependence_probability ___________________________________________________________________________________________ def test_dependence_probability(): '''Test that Loom correctly recovers a 2-view dataset.''' D, Zv, Zc = tu.gen_data_table( n_rows=150, view_weights=None, cluster_weights=[[.2,.2,.2,.4], [.3,.2,.5],], cctypes=['normal']*6, distargs=[None]*6, separation=[0.95]*6, view_partition=[0,0,0,1,1,1], rng=gu.gen_rng(12) ) engine = Engine( D.T, outputs=[7, 2, 12, 80, 129, 98], cctypes=['normal']*len(D), distargs=[None]*6, rng=gu.gen_rng(122), num_states=64, ) logscore0 = engine.logpdf_score() engine.transition_loom(N=100) logscore1 = engine.logpdf_score() assert numpy.mean(logscore1) > numpy.mean(logscore0) dependence_probability = engine.dependence_probability_pairwise() > assert dependence_probability[0,1] > 0.8 E TypeError: list indices must be integers, not tuple tests/disabled_test_loomcat.py:186: TypeError ====================================================================================== 1 failed, 2 passed in 92.94 seconds ===================================================================================```