Skip to content

Instantly share code, notes, and snippets.

@gabraganca
Last active April 6, 2019 00:42
Show Gist options
  • Save gabraganca/785b31b53f0e69e081453473776a4dee to your computer and use it in GitHub Desktop.
Save gabraganca/785b31b53f0e69e081453473776a4dee to your computer and use it in GitHub Desktop.
Libraries
import time
import datetime
import random
import pandas as pd
import numpy as np
from surprise import SVD, BaselineOnly, Reader, Dataset
from surprise.model_selection import GridSearchCV, cross_validate, KFold
import seaborn as sns
import matplotlib.pyplot as plt
%matplotlib inline
# Cria semente para garantir reprodutibilidade
MY_SEED = 42
def set_cell_seed(seed):
random.seed(seed)
np.random.seed(seed)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment