Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 05db17e

Browse files
adrinjalaliCharlie-XIAO
authored andcommitted
DOC remove tutorials (#29104)
Co-authored-by: Yao Xiao <[email protected]>
1 parent 40a13da commit 05db17e

29 files changed

+12
-2793
lines changed

doc/conf.py

+1
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

-6
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,6 @@ def pytest_runtest_setup(item):
128128
setup_rcv1()
129129
elif fname.endswith("datasets/twenty_newsgroups.rst") or is_index:
130130
setup_twenty_newsgroups()
131-
elif (
132-
fname.endswith("tutorial/text_analytics/working_with_text_data.rst") or is_index
133-
):
134-
setup_working_with_text_data()
135131
elif fname.endswith("modules/compose.rst") or is_index:
136132
setup_compose()
137133
elif fname.endswith("datasets/loading_other_datasets.rst"):
@@ -148,8 +144,6 @@ def pytest_runtest_setup(item):
148144
rst_files_requiring_matplotlib = [
149145
"modules/partial_dependence.rst",
150146
"modules/tree.rst",
151-
"tutorial/statistical_inference/settings.rst",
152-
"tutorial/statistical_inference/supervised_learning.rst",
153147
]
154148
for each in rst_files_requiring_matplotlib:
155149
if fname.endswith(each):

doc/developers/contributing.rst

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

doc/getting_started.rst

+2-3
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

-1
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

+3-3
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

+1-6
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)