-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update next-basket evaluation (#559)
* Fix eval and add batch basket items iteration * refactor code * Fix scoring function * refactor code * Add unittest for NextBasketEvaluation * Add unittest for BasketDataset * Add test NextBasketRecommender * Add test case reading basket data * refactor code * Add history basket ids for accessing extra data in scoring function * Add option to scoring function based on quantity provided in extra_data * refactor code * reuse user_iter() in ub_iter() * reuse ub_iter() in ubi_iter() * consider using num_user_batches() instead of overwriting existing num_batches() --------- Co-authored-by: tqtg <[email protected]>
- Loading branch information
Showing
9 changed files
with
302 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.