Skip to content

Instantly share code, notes, and snippets.

@maxpagels
Created April 18, 2018 16:27
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save maxpagels/b9c9001f7e5b28a5742b81b02f7704e2 to your computer and use it in GitHub Desktop.
Save maxpagels/b9c9001f7e5b28a5742b81b02f7704e2 to your computer and use it in GitHub Desktop.
import numpy as np
from sklearn import linear_model
n_samples, n_features = 1, 500
y = np.random.randn(n_samples)
X = np.random.randn(n_samples, n_features)
clf = linear_model.SGDRegressor()
import time
start_time = time.time()
clf.partial_fit(X, y)
elapsed_time = time.time() - start_time
print(elapsed_time)
@guhan33
Copy link

guhan33 commented Jul 2, 2019

is there any similar way to define a keras sequential model ?

@suniladityajatni
Copy link

is there any similar way to define a keras sequential model ?

yes u can use keras sequential api.Link :- https://keras.io/api/models/sequential/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment