Skip to content

Commit

Permalink
Reorganised examples
Browse files Browse the repository at this point in the history
  • Loading branch information
perellonieto committed May 3, 2024
1 parent 63d0baf commit 8208ab9
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 378 deletions.
1 change: 0 additions & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,3 @@ Indices and tables

* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
5 changes: 4 additions & 1 deletion docs/source/usage/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
Quickstart
==========

This is a simple description of how to calibrate a classifier using this
library. For an extended example check the Section Examples
:ref:`sphx_glr_examples_xmpl_quickstart.py`.

The simplest way to calibrate an existing probabilistic classifier is the
following:

Expand Down Expand Up @@ -33,4 +37,3 @@ Now you can train both classifier and calibrator all together.
dataset = load_iris()
cal_clf.fit(dataset.data, dataset.target)
For a full example check the Section Examples quick start.
7 changes: 0 additions & 7 deletions examples/visualisations/README.txt

This file was deleted.

341 changes: 0 additions & 341 deletions examples/visualisations/reliability_diagram_examples.ipynb

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,6 @@
show_gaps=True, show_bars=True,
show_histogram=True)

fig.tight_layout()
fig.savefig('pycalib_rd_bars.svg')

##############################################################################
# However, both previous illustrations do not include the number of samples
Expand Down Expand Up @@ -153,8 +151,6 @@
errorbar_interval=0.95,
interval_method='beta')

fig.tight_layout()
fig.savefig('pycalib_rd_lines.svg')

##############################################################################
# It is possible to draw reliability diagram for multiple classes as well. We
Expand Down Expand Up @@ -194,8 +190,6 @@
show_bars=True,
show_gaps=True)

fig.tight_layout()
fig.savefig('pycalib_rd_ternary.svg')

##############################################################################
# And change the colors.
Expand Down
Loading

0 comments on commit 8208ab9

Please sign in to comment.