Skip to content

Commit

Permalink
Add next-item pipeline (#561)
Browse files Browse the repository at this point in the history
* Add `data.dataset.SequentialDataset` to support new data formats:
  * "SIT": Session, Item, Timestamp
  * "SITJson": Session, Item, Timestamp, Json
  * "USIT": User, Session, Item, Timestamp
  * "USITJson": User, Session, Item, Timestamp, Json
* Add `data.reader` parser for listed formats
* Add `eval_method.NextItemEvaluation` for next-item evaluation
* Add `models.SPop` baseline model: session-based popular
* Add `gowalla` check-ins and `yoochoose` datasets
* Add unit tests

---------

Co-authored-by: lthoang <[email protected]>
Co-authored-by: tqtg <[email protected]>
  • Loading branch information
3 people authored Dec 26, 2023
1 parent 477405a commit eabdd2d
Show file tree
Hide file tree
Showing 18 changed files with 1,401 additions and 79 deletions.
22 changes: 13 additions & 9 deletions cornac/data/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,17 @@
from .reader import Reader
from .dataset import Dataset
from .dataset import BasketDataset
from .dataset import SequentialDataset

__all__ = ['FeatureModality',
'TextModality',
'ReviewModality',
'ImageModality',
'GraphModality',
'SentimentModality',
'BasketDataset',
'Dataset',
'Reader']
__all__ = [
"FeatureModality",
"TextModality",
"ReviewModality",
"ImageModality",
"GraphModality",
"SentimentModality",
"BasketDataset",
"SequentialDataset",
"Dataset",
"Reader",
]
Loading

0 comments on commit eabdd2d

Please sign in to comment.