Skip to content

Commit

Permalink
updated cv notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
claesenm committed Jul 9, 2015
1 parent 8fea10c commit d795e28
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docs/notebooks/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Here you can find a variety of notebooks to illustrate various features of Optun
To contribute examples, please send us a pull request on Github_.

.. toctree::
:maxdepth: 1
:maxdepth: 2
:glob:

/notebooks/notebooks/*
10 changes: 6 additions & 4 deletions docs/notebooks/notebooks/basic-cross-validation.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@

Cross-validation
================

This notebook explores the main elements of Optunity's cross-validation
facilities, including:

Expand All @@ -21,9 +24,8 @@ will partition into folds.
data = list(range(6))
labels = [True] * 3 + [False] * 3
Standard cross-validation
==========================
--------------------------

Each function to be decorated with cross-validation functionality must
accept the following arguments: - x\_train: training data - x\_test:
Expand Down Expand Up @@ -157,7 +159,7 @@ fold), two sets of folds are generated and evaluated.
Using strata and clusters
=========================
-------------------------

Strata are defined as sets of instances that should be spread out across
folds as much as possible (e.g. stratify patients by age). Clusters are
Expand Down Expand Up @@ -283,7 +285,7 @@ clusters.
Aggregators
============
------------

Aggregators are used to combine the scores per fold into a single
result. The default approach used in cross-validation is to take the
Expand Down
16 changes: 12 additions & 4 deletions notebooks/basic-cross-validation.ipynb
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
{
"metadata": {
"signature": "sha256:fad481679455b6615e1c6bffea45b2f8fd532d0baf15c588891fff824f4c2575"
"signature": "sha256:bce054d35bb89bd1d4e902f2dc6dca63ba1ab64d2be7bb36a9946fcdfe643ac2"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "heading",
"level": 1,
"metadata": {},
"source": [
"Cross-validation"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -55,7 +63,7 @@
},
{
"cell_type": "heading",
"level": 1,
"level": 2,
"metadata": {},
"source": [
"Standard cross-validation <a id=standard></a>"
Expand Down Expand Up @@ -258,7 +266,7 @@
},
{
"cell_type": "heading",
"level": 1,
"level": 2,
"metadata": {},
"source": [
"Using strata and clusters<a id=strata-clusters></a>"
Expand Down Expand Up @@ -437,7 +445,7 @@
},
{
"cell_type": "heading",
"level": 1,
"level": 2,
"metadata": {},
"source": [
"Aggregators <a id=aggregators></a>"
Expand Down

0 comments on commit d795e28

Please sign in to comment.