Skip to content
Extraits de code Groupes Projets
constants.py 700 octets
Newer Older
  • Learn to ignore specific revisions
  • # third parties imports
    from pathlib import Path
    
    
    class Constant:
    
    
        DATA_PATH = Path('data/small')  # -- fill here the dataset size to use
    
    
        # Content
        CONTENT_PATH = DATA_PATH / 'content'
        # - item
        ITEMS_FILENAME = 'movies.csv'
        ITEM_ID_COL = 'movieId'
        LABEL_COL = 'title'
        GENRES_COL = 'genres'
    
        # Evidence
        EVIDENCE_PATH = DATA_PATH / 'evidence'
        # - ratings
        RATINGS_FILENAME = 'ratings.csv'
        USER_ID_COL = 'userId'
        RATING_COL = 'rating'
        TIMESTAMP_COL = 'timestamp'
        USER_ITEM_RATINGS = [USER_ID_COL, ITEM_ID_COL, RATING_COL]
    
        # Rating scale
        RATINGS_SCALE = None  # -- fill in here the ratings scale as a tuple (min_value, max_value)