def test_inverse_transform():
    oht = OnehotTransactions()
    oht.fit(dataset)
    np.testing.assert_array_equal(np.array(data_sorted),
                                  np.array(oht.inverse_transform(expect)))
Пример #2
0
def test_inverse_transform():
    oht = OnehotTransactions()
    oht.fit(dataset)
    np.testing.assert_array_equal(np.array(data_sorted),
                                  np.array(oht.inverse_transform(expect)))