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
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() | |
gbr.fit(xTrain, yTrain) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment