Skip to content

Commit

Permalink
loading data of mnist
Browse files Browse the repository at this point in the history
  • Loading branch information
LordSomen committed Jul 30, 2018
1 parent 66b5197 commit 33cceca
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Ensemble_learning/mnist_ensemble.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#%%
''' retrieving mnist data '''

from sklearn.datasets import fetch_mldata
mnist = fetch_mldata('MNIST original')
print(mnist)

#%%
X, Y = mnist["data"], mnist["target"]
print(X)
print(Y)
print(X.shape)
print(Y.shape)

#%%
X_train,Y_train,X_val,Y_val,X_test,Y_test = X[:40000],Y[:40000],X[40000:50000],Y[40000:50000],X[50000:],Y[50000:]
print(X_val)

#%%

0 comments on commit 33cceca

Please sign in to comment.