Skip to content

Commit

Permalink
DOC add source code links in API refs (close #27)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhiningLiu1998 committed Mar 3, 2023
1 parent 36389df commit 9c2e612
Show file tree
Hide file tree
Showing 65 changed files with 333 additions and 118 deletions.
Binary file modified docs/source/auto_examples/auto_examples_jupyter.zip
Binary file not shown.
Binary file modified docs/source/auto_examples/auto_examples_python.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/source/auto_examples/basic/plot_basic_example.rst
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ Enable training log
.. rst-class:: sphx-glr-timing

**Total running time of the script:** ( 0 minutes 0.679 seconds)
**Total running time of the script:** ( 0 minutes 0.895 seconds)


.. _sphx_glr_download_auto_examples_basic_plot_basic_example.py:
Expand Down
Binary file not shown.
8 changes: 4 additions & 4 deletions docs/source/auto_examples/basic/plot_basic_visualize.rst
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,11 @@ Fit an ImbalancedEnsembleVisualizer

.. code-block:: none
0%| | 0/50 [00:00<?, ?it/s] Visualizer evaluating model SPE on dataset training :: 0%| | 0/50 [00:00<?, ?it/s] Visualizer evaluating model SPE on dataset training :: 100%|################################################################################################################################| 50/50 [00:00<00:00, 2206.76it/s]
0%| | 0/50 [00:00<?, ?it/s] Visualizer evaluating model SPE on dataset validation :: 0%| | 0/50 [00:00<?, ?it/s] Visualizer evaluating model SPE on dataset validation :: 100%|################################################################################################################################| 50/50 [00:00<00:00, 2351.15it/s]
0%| | 0/50 [00:00<?, ?it/s] Visualizer evaluating model SPE on dataset training :: 0%| | 0/50 [00:00<?, ?it/s] Visualizer evaluating model SPE on dataset training :: 100%|###################################################################################################################################################| 50/50 [00:00<00:00, 1562.61it/s]
0%| | 0/50 [00:00<?, ?it/s] Visualizer evaluating model SPE on dataset validation :: 0%| | 0/50 [00:00<?, ?it/s] Visualizer evaluating model SPE on dataset validation :: 100%|###################################################################################################################################################| 50/50 [00:00<00:00, 1490.98it/s]
Visualizer computing confusion matrices.. Finished!

<imbens.visualizer.visualizer.ImbalancedEnsembleVisualizer object at 0x0000014D4B39F100>
<imbens.visualizer.visualizer.ImbalancedEnsembleVisualizer object at 0x00000176110998B0>



Expand Down Expand Up @@ -229,7 +229,7 @@ Plot confusion matrix

.. rst-class:: sphx-glr-timing

**Total running time of the script:** ( 0 minutes 0.491 seconds)
**Total running time of the script:** ( 0 minutes 0.659 seconds)


.. _sphx_glr_download_auto_examples_basic_plot_basic_visualize.py:
Expand Down
Binary file not shown.
12 changes: 6 additions & 6 deletions docs/source/auto_examples/basic/plot_training_log.rst

Large diffs are not rendered by default.

Binary file modified docs/source/auto_examples/basic/plot_training_log_codeobj.pickle
Binary file not shown.
8 changes: 4 additions & 4 deletions docs/source/auto_examples/basic/sg_execution_times.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@

Computation times
=================
**00:02.265** total execution time for **auto_examples_basic** files:
**00:02.831** total execution time for **auto_examples_basic** files:

+-------------------------------------------------------------------------------------------+-----------+--------+
| :ref:`sphx_glr_auto_examples_basic_plot_training_log.py` (``plot_training_log.py``) | 00:01.094 | 0.0 MB |
| :ref:`sphx_glr_auto_examples_basic_plot_training_log.py` (``plot_training_log.py``) | 00:01.278 | 0.0 MB |
+-------------------------------------------------------------------------------------------+-----------+--------+
| :ref:`sphx_glr_auto_examples_basic_plot_basic_example.py` (``plot_basic_example.py``) | 00:00.679 | 0.0 MB |
| :ref:`sphx_glr_auto_examples_basic_plot_basic_example.py` (``plot_basic_example.py``) | 00:00.895 | 0.0 MB |
+-------------------------------------------------------------------------------------------+-----------+--------+
| :ref:`sphx_glr_auto_examples_basic_plot_basic_visualize.py` (``plot_basic_visualize.py``) | 00:00.491 | 0.0 MB |
| :ref:`sphx_glr_auto_examples_basic_plot_basic_visualize.py` (``plot_basic_visualize.py``) | 00:00.659 | 0.0 MB |
+-------------------------------------------------------------------------------------------+-----------+--------+
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ Compare all reweighting-based ensemble algorithms

.. rst-class:: sphx-glr-timing

**Total running time of the script:** ( 0 minutes 4.641 seconds)
**Total running time of the script:** ( 0 minutes 5.478 seconds)


.. _sphx_glr_download_auto_examples_classification_plot_classifier_comparison.py:
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ Visualize All Used Cost Matrices

.. rst-class:: sphx-glr-timing

**Total running time of the script:** ( 0 minutes 0.655 seconds)
**Total running time of the script:** ( 0 minutes 0.842 seconds)


.. _sphx_glr_download_auto_examples_classification_plot_cost_matrix.py:
Expand Down
Binary file not shown.
16 changes: 8 additions & 8 deletions docs/source/auto_examples/classification/plot_digits.rst
Original file line number Diff line number Diff line change
Expand Up @@ -241,22 +241,22 @@ The fitted classifier can subsequently be used to predict the value of the digit
Classification report for classifier SelfPacedEnsembleClassifier(estimator=SVC(gamma=0.001, probability=True),
n_estimators=5,
random_state=RandomState(MT19937) at 0x14D4217F040):
random_state=RandomState(MT19937) at 0x1760814F040):
precision recall f1-score support
0 1.00 1.00 1.00 89
1 0.92 1.00 0.96 60
2 1.00 0.97 0.99 40
1 0.94 1.00 0.97 60
2 1.00 0.95 0.97 40
3 1.00 0.90 0.95 30
4 1.00 0.96 0.98 25
5 0.95 0.95 0.95 22
6 1.00 1.00 1.00 20
7 0.90 0.95 0.93 20
8 0.90 0.90 0.90 20
7 0.86 0.95 0.90 20
8 0.86 0.90 0.88 20
9 0.95 0.90 0.92 20
accuracy 0.97 346
macro avg 0.96 0.95 0.96 346
macro avg 0.96 0.95 0.95 346
weighted avg 0.97 0.97 0.97 346
Expand Down Expand Up @@ -325,7 +325,7 @@ We can also plot a confusion matrix of the true digit values and the predicted d

.. code-block:: none
0%| | 0/5 [00:00<?, ?it/s] Visualizer evaluating model SPE on dataset test :: 0%| | 0/5 [00:00<?, ?it/s] Visualizer evaluating model SPE on dataset test :: 100%|##########################################################################################################################################| 5/5 [00:00<00:00, 59.86it/s]
0%| | 0/5 [00:00<?, ?it/s] Visualizer evaluating model SPE on dataset test :: 0%| | 0/5 [00:00<?, ?it/s] Visualizer evaluating model SPE on dataset test :: 100%|#############################################################################################################################################################| 5/5 [00:00<00:00, 58.45it/s]
Visualizer computing confusion matrices. Finished!


Expand All @@ -334,7 +334,7 @@ We can also plot a confusion matrix of the true digit values and the predicted d

.. rst-class:: sphx-glr-timing

**Total running time of the script:** ( 0 minutes 1.385 seconds)
**Total running time of the script:** ( 0 minutes 1.194 seconds)


.. _sphx_glr_download_auto_examples_classification_plot_digits.py:
Expand Down
Binary file not shown.
8 changes: 4 additions & 4 deletions docs/source/auto_examples/classification/plot_probability.rst
Original file line number Diff line number Diff line change
Expand Up @@ -212,17 +212,17 @@ Plot classification probabilities

.. code-block:: none
Balanced Accuracy (train) for SPE-DT: 84.9%
Balanced Accuracy (train) for SPE-SVM-rbf: 77.8%
Balanced Accuracy (train) for SPE-GPC: 85.6%
Balanced Accuracy (train) for SPE-DT: 92.2%
Balanced Accuracy (train) for SPE-SVM-rbf: 78.9%
Balanced Accuracy (train) for SPE-GPC: 81.1%
.. rst-class:: sphx-glr-timing

**Total running time of the script:** ( 0 minutes 0.622 seconds)
**Total running time of the script:** ( 0 minutes 0.711 seconds)


.. _sphx_glr_download_auto_examples_classification_plot_probability.py:
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ Visualize different resampling target

.. rst-class:: sphx-glr-timing

**Total running time of the script:** ( 0 minutes 1.163 seconds)
**Total running time of the script:** ( 0 minutes 1.588 seconds)


.. _sphx_glr_download_auto_examples_classification_plot_resampling_target.py:
Expand Down
Binary file not shown.
Loading

0 comments on commit 9c2e612

Please sign in to comment.