dataset: add session-aware datasets: Diginetica, RetailRocket, and Cosmetics#690
Open
hieuddo wants to merge 2 commits into
Open
dataset: add session-aware datasets: Diginetica, RetailRocket, and Cosmetics#690hieuddo wants to merge 2 commits into
hieuddo wants to merge 2 commits into
Conversation
There was a problem hiding this comment.
Pull request overview
Adds three new built-in session-aware (USIT-format) datasets to Cornac, each with train/val/test split loaders and corresponding dataset download tests.
Changes:
- Added dataset loader modules for Diginetica, RetailRocket, and Cosmetics (train/val/test splits via
cache(..., unzip=True)+Reader.read(..., fmt="USIT")). - Added basic download/shape tests asserting expected record counts for each split.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
cornac/datasets/diginetica.py |
New dataset loader for Diginetica with load_train/load_val/load_test. |
cornac/datasets/retailrocket.py |
New dataset loader for RetailRocket with load_train/load_val/load_test. |
cornac/datasets/cosmetics.py |
New dataset loader for Cosmetics with load_train/load_val/load_test. |
tests/cornac/datasets/test_diginetica.py |
Download test verifying split sizes (probabilistically executed). |
tests/cornac/datasets/test_retailrocket.py |
Download test verifying split sizes (probabilistically executed). |
tests/cornac/datasets/test_cosmetics.py |
Download test verifying split sizes (probabilistically executed). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+15
to
+23
| """ | ||
| RetailRocket dataset: e-commerce web events (clicks, add to carts, transactions) data for 4.5 months. | ||
| """ | ||
|
|
||
| from typing import List | ||
|
|
||
| from ..data import Reader | ||
| from ..utils import cache | ||
|
|
| # limitations under the License. | ||
| # ============================================================================ | ||
| """ | ||
| RetailRocket dataset: e-commerce web events (clicks, add to carts, transactions) data for 4.5 months. |
| class TestRetailRocket(unittest.TestCase): | ||
|
|
||
| def test_load_train_val_test(self): | ||
| random.seed(time.time()) |
| class TestDiginetica(unittest.TestCase): | ||
|
|
||
| def test_load_train_val_test(self): | ||
| random.seed(time.time()) |
| class TestCosmetics(unittest.TestCase): | ||
|
|
||
| def test_load_train_val_test(self): | ||
| random.seed(time.time()) |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Add three datasets for session-aware recommendation (format
USIT), with data size increasing:Related Issues
Checklist:
datasets/README.md(if you are adding a new dataset).