Closed hieuddo closed 2 months ago
@hieuddo @lthoang how about modifying the tutorial to the following?
efm = EFM(max_iter=0)
efm.fit(train_set=rs.train_set)
I think it serves the same purpose and looks cleaner.
@tqtg I think your suggestion makes sense. efm.fit(train_set=rs.train_set)
seems more conventional than directly assign train_set
by efm.train_set = rs.train_set
.
Anyway, could you help to release new cornac
version with the recent Recommender.rank()
fix so that EFM
can run smoothly?
@hieuddo we have a new version released. Should we check if the above approach works for the tutorial? and do we need to work on this change anymore?
@tqtg Yes, it works. There is no need for this change. Thanks
Description
The two methods
knows_user
andknows_item
check whetheruid
(oriid
) is smaller thanself.num_users
(orself.num_items
), which doesn't exist becausefit()
was never executed.This commit tries to fix an error in
recommender-systems
tutorial notebook 7, whereEFM.train_set
is assigned and_build_matrices()
is executed beforefit()
: