def test(self): self.reconstruction = self.sess.run(self.layer_2, feed_dict={ self.corrupted_interact_matrix: self.train_data, self.item_id: range(self.num_item) }).transpose() evaluate(self)
def test(self): self.reconstruction = self.sess.run(self.layer_2, feed_dict={ self.corrupted_rating_matrix: self.train_data, self.user_id: range(self.num_user) }) evaluate(self)
def test(self): reconstruction = self.model([self.train_data, self.train_data]) self.reconstruction = np.array(reconstruction) evaluate(self)
def test(self): reconstruction = self.model([self.train_data, self.train_data, np.expand_dims(range(self.num_user), -1)]) self.reconstruction = np.array(reconstruction) evaluate(self)