Skip to content

Commit 9126ec7

Browse files
committedAug 5, 2018
update
1 parent b8b97e3 commit 9126ec7

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed
 

‎ann_class/sklearn_ann.py

+1-7
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,7 @@
1717
from sklearn.utils import shuffle
1818

1919
# get the data
20-
X, Y = get_data()
21-
22-
# split into train and test
23-
X, Y = shuffle(X, Y)
24-
Ntrain = int(0.7*len(X))
25-
Xtrain, Ytrain = X[:Ntrain], Y[:Ntrain]
26-
Xtest, Ytest = X[Ntrain:], Y[Ntrain:]
20+
Xtrain, Ytrain, Xtest, Ytest = get_data()
2721

2822
# create the neural network
2923
model = MLPClassifier(hidden_layer_sizes=(20, 20), max_iter=2000)

0 commit comments

Comments
 (0)
Please sign in to comment.