Skip to content

Instantly share code, notes, and snippets.

View superdzen's full-sized avatar

Den Kushnerik superdzen

  • Novosibirsk, Russia
View GitHub Profile
@superdzen
superdzen / keras-regression.py
Last active May 10, 2019 07:58 — forked from guangningyu/keras-regression.py
Reference: [Regression Tutorial with the Keras Deep Learning Library in Python](http://machinelearningmastery.com/regression-tutorial-keras-deep-learning-library-python/)
#!/usr/bin/env python
from urllib.request import urlopen
import numpy as np
from keras.models import Sequential
from keras.layers import Dense
from keras.wrappers.scikit_learn import KerasRegressor
from sklearn.model_selection import cross_val_score
from sklearn.model_selection import KFold
from sklearn.preprocessing import StandardScaler