8000 DOC remove tutorials (#29104) · scikit-learn/scikit-learn@65c00c7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 65c00c7

Browse files
DOC remove tutorials (#29104)
Co-authored-by: Yao Xiao <108576690+Charlie-XIAO@users.noreply.github.com>
1 parent 1009ca4 commit 65c00c7

29 files changed

+12
-2793
lines changed

doc/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,7 @@ def add_js_css_files(app, pagename, templatename, context, doctree):
448448
"auto_examples/exercises/plot_cv_digits.py": (
449449
"auto_examples/model_selection/plot_nested_cross_validation_iris.py"
450450
),
451+
"tutorial/machine_learning_map/index.html": "machine_learning_map/index.html",
451452
}
452453
html_context["redirects"] = redirects
453454
for old_link in redirects:

doc/conftest.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,6 @@ def pytest_runtest_setup(item):
126126
setup_rcv1()
127127
elif fname.endswith("datasets/twenty_newsgroups.rst") or is_index:
128128
setup_twenty_newsgroups()
129-
elif (
130-
fname.endswith("tutorial/text_analytics/working_with_text_data.rst") or is_index
131-
):
132-
setup_working_with_text_data()
133129
elif fname.endswith("modules/compose.rst") or is_index:
134130
setup_compose()
135131
elif fname.endswith("datasets/loading_other_datasets.rst"):
@@ -146,8 +142,6 @@ def pytest_runtest_setup(item):
146142
rst_files_requiring_matplotlib = [
147143
"modules/partial_dependence.rst",
148144
"modules/tree.rst",
149-
"tutorial/statistical_inference/settings.rst",
150-
"tutorial/statistical_inference/supervised_learning.rst",
151145
]
152146
for each in rst_files_requiring_matplotlib:
153147
if fname.endswith(each):

doc/developers/contributing.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -650,10 +650,8 @@ We are glad to accept any sort of documentation:
650650
* **User guide:** These provide more detailed information about the algorithms
651651
implemented in scikit-learn and generally live in the root
652652
`doc/ <https://github.com/scikit-learn/scikit-learn/tree/main/doc>`_ directory
653-
and `doc/modules/ <https://github.com/scikit-learn/scikit-learn/tree/main/doc/modules>`_.
654-
* **Tutorials:** These introduce various statistical learning and machine learning
655-
concepts and are located in
656-
`doc/tutorial <https://github.com/scikit-learn/scikit-learn/tree/main/doc/tutorial>`_.
653+
and
654+
`doc/modules/ <https://github.com/scikit-learn/scikit-learn/tree/main/doc/modules>`_.
657655
* **Examples:** These provide full code examples that may demonstrate the use
658656
of scikit-learn modules, compare different algorithms or discuss their
659657
interpretation, etc. Examples live in

doc/getting_started.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ new data. You don't need to re-train the estimator::
5353
>>> clf.predict([[4, 5, 6], [14, 15, 16]]) # predict classes of new data
5454
array([0, 1])
5555

56+
You can check :ref:`ml_map` on how to choose the right model for your use case.
57+
5658
Transformers and pre-processors
5759
-------------------------------
5860

@@ -227,6 +229,3 @@ provide. You can also find an exhaustive list of the public API in the
227229

228230
You can also look at our numerous :ref:`examples <general_examples>` that
229231
illustrate the use of ``scikit-learn`` in many different contexts.
230-
231-
The :ref:`tutorials <tutorial_menu>` also contain additional learning
232-
resources.

doc/index.rst.template

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
auto_examples/index
1414
Community <https://blog.scikit-learn.org/>
1515
getting_started
16-
Tutorials <tutorial/index>
1716
whats_new
1817
Glossary <glossary>
1918
Development <{{ development_link }}>

doc/tutorial/machine_learning_map/index.rst renamed to doc/machine_learning_map.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ problems with regard to which estimators to try on your data. Click on any estim
1414
the chart below to see its documentation. The 😭 emoji is to be read as "if this
1515
estimator does not achieve the desired outcome, then follow the arrow and try the next
1616
one". Use scroll wheel to zoom in and out, and click and drag to pan around. You can
17-
also download the chart: :download:`ml_map.svg <../../images/ml_map.svg>`.
17+
also download the chart: :download:`ml_map.svg <images/ml_map.svg>`.
1818

1919
.. raw:: html
2020

@@ -36,7 +36,7 @@ also download the chart: :download:`ml_map.svg <../../images/ml_map.svg>`.
3636
}
3737
</style>
3838

39-
<script src="../../_static/scripts/vendor/svg-pan-zoom.min.js"></script>
39+
<script src="_static/scripts/vendor/svg-pan-zoom.min.js"></script>
4040
<script>
4141
document.addEventListener("DOMContentLoaded", function () {
4242
const beforePan = function (oldPan, newPan) {
@@ -69,7 +69,7 @@ also download the chart: :download:`ml_map.svg <../../images/ml_map.svg>`.
6969
<div id="sk-ml-map">
7070

7171
.. raw:: html
72-
:file: ../../images/ml_map.svg
72+
:file: images/ml_map.svg
7373

7474
.. raw:: html
7575

doc/presentations.rst

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
External Resources, Videos and Talks
33
===========================================
44

5-
For written tutorials, see the :ref:`Tutorial section <tutorial_menu>` of
6-
the documentation.
7-
85
New to Scientific Python?
96
==========================
107
For those that are still new to the scientific Python ecosystem, we highly
@@ -45,9 +42,7 @@ Videos
4542

4643
An extensive tutorial, consisting of four sessions of one hour.
4744
The tutorial covers the basics of machine learning,
48-
many algorithms and how to apply them using scikit-learn. The
49-
material corresponding is now in the scikit-learn documentation
50-
section :ref:`stat_learn_tut_index`.
45+
many algorithms and how to apply them using scikit-learn.
5146

5247
- `Statistical Learning for Text Classification with scikit-learn and NLTK
5348
<https://pyvideo.org/video/417/pycon-2011--statistical-machine-learning-for-text>`_

0 commit comments

Comments
 (0)
0