Skip to content

Instantly share code, notes, and snippets.

@amankharwal

amankharwal/instagram.py Secret

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