Skip to content

Instantly share code, notes, and snippets.

# Inspired by:
# https://github.com/microsoft/recommenders/blob/main/recommenders/datasets/python_splitters.py
# - In "recommenders" library, when spliting by 'item', `python_stratified_split` puts both rows of movies with only two ratings in the training set.
# - This version here puts one in the training and one in validation set.
import pandas as pd
import numpy as np
DEFAULT_USER_COL = 'user'
DEFAULT_ITEM_COL = 'title'
@fmussari
fmussari / 12b_schedulers.ipynb
Last active November 1, 2024 18:51
Lesson 18 homework - Creating schedulers for miniai
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.