def test_fit(self):
        df = pd.DataFrame([{"user": 10, "item": 100}, {"user": 10, "item": 110}, {"user": 12, "item": 100}])
        i2i = Item2Item()
        i2i.fit(df)

        self.assertEqual(i2i._items[100], set([10, 12]))
        self.assertEqual(i2i._items[110], set([10]))

        self.assertEqual(i2i._users[10], set([100, 110]))
        self.assertEqual(i2i._users[12], set([100]))

        self.assertEqual(i2i.similarity(100, 100), 1.0)
        self.assertEqual(i2i.similarity(100, 110), 2.0/1.0)
dataset/ETHPy150Open grafos-ml/test.fm/src/tests/test_models.py/Item2ItemTest.test_fit/swapped operands of `/`