Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scikit-learn
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ian Johnson
scikit-learn
Commits
883a10cd
Commit
883a10cd
authored
14 years ago
by
Gael Varoquaux
Browse files
Options
Downloads
Patches
Plain Diff
BUG: Fix doctests.
parent
0c4bd2d9
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/modules/cross_validation.rst
+2
-2
2 additions, 2 deletions
doc/modules/cross_validation.rst
with
2 additions
and
2 deletions
doc/modules/cross_validation.rst
+
2
−
2
View file @
883a10cd
...
@@ -166,8 +166,8 @@ Example of stratified 2-fold:
...
@@ -166,8 +166,8 @@ Example of stratified 2-fold:
>>> print skf
>>> print skf
scikits.learn.cross_val.StratifiedKFold(labels=[0 0 0 1 1 1 0], k=2)
scikits.learn.cross_val.StratifiedKFold(labels=[0 0 0 1 1 1 0], k=2)
>>> for train, test in skf: print train, test
>>> for train, test in skf: print train, test
[False
True False
False True False True
] [
True
False
True True False True False]
[False False True False True
True
True] [
True True False True
False False
False]
[ True
False True
True False True False
] [
False
True
False False True False True]
[ True True False True False
False
False] [
False False True False
True True
True]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment