Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BP_improve.py: rename for new version of sklearn #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 1 addition & 2 deletions ch5_neural_networks/5.6_BP_improve/BP_improve.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
'''''
@author: PY131
'''''
from sklearn.decomposition.tests.test_nmf import random_state

'''
preparation of data
Expand Down Expand Up @@ -42,7 +41,7 @@
'''
split of train set and test set (using sklearn function)
'''
from sklearn.cross_validation import train_test_split
from sklearn.model_selection import train_test_split
train_X, test_X, train_y, test_y, train_Y, test_Y = train_test_split(X,y,Y,test_size = 0.5, random_state = 42)

'''
Expand Down