Skip to content

Commit

Permalink
convert logics.ItemToItem to interface
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenghaoz committed Jan 19, 2025
1 parent 18ef793 commit 4151121
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion master/tasks.go
Original file line number Diff line number Diff line change
Expand Up @@ -1770,7 +1770,7 @@ func (m *Master) updateItemToItem(dataset *dataset.Dataset) error {
// Build item-to-item recommenders
itemToItemRecommenders := make([]logics.ItemToItem, 0, len(m.Config.Recommend.ItemToItem))
for _, cfg := range m.Config.Recommend.ItemToItem {
recommender, err := logics.NewItemToItem(cfg, m.Config.Recommend.CacheSize, dataset.GetTimestamp())
recommender, err := logics.NewItemToItem(cfg, m.Config.Recommend.CacheSize, dataset.GetTimestamp(), dataset.GetItemColumnValuesIDF())
if err != nil {
return errors.Trace(err)
}
Expand Down

0 comments on commit 4151121

Please sign in to comment.