Skip to content

Instantly share code, notes, and snippets.

Created January 26, 2021 08:38
What would you like to do?
targets = targets/maxValLikes
from sklearn.preprocessing import StandardScaler
from sklearn.model_selection import train_test_split
xTrain, xTest, yTrain, yTest = train_test_split(features, targets, test_size = 0.1, random_state = 42)
stdSc = StandardScaler()
xTrain = stdSc.fit_transform(xTrain)
xTest = stdSc.transform(xTest)
from sklearn.ensemble import GradientBoostingRegressor
gbr = GradientBoostingRegressor(), yTrain)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment