Last active
April 6, 2019 00:42
-
-
Save gabraganca/785b31b53f0e69e081453473776a4dee to your computer and use it in GitHub Desktop.
Libraries
This file contains 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
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