Skip to content

Commit

Permalink
update readme example
Browse files Browse the repository at this point in the history
  • Loading branch information
johny-c committed Nov 4, 2018
1 parent de5290c commit a0857e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ Here is a minimal use case:
# Load a data set
dataset = load_iris()
X, y = dataset.data, dataset.target
X, y = load_iris(return_X_y=True)
# Split in training and testing set
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.7, stratify=y, random_state=42)
Expand Down
3 changes: 1 addition & 2 deletions examples/minimal.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@


# Load a data set
dataset = load_iris()
X, y = dataset.data, dataset.target
X, y = load_iris(return_X_y=True)

# Split in training and testing set
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.7, stratify=y, random_state=42)
Expand Down

0 comments on commit a0857e9

Please sign in to comment.