Skip to content

Commit 83c2ce5

Browse files
committed
Rebuild dev docs at master=5f3cbb5
1 parent f6a9671 commit 83c2ce5

File tree

226 files changed

+1257
-1253
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

226 files changed

+1257
-1253
lines changed

dev/_downloads/plot_theilsen.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@
4848
estimators = [('OLS', LinearRegression()),
4949
('Theil-Sen', TheilSenRegressor(random_state=42)),
5050
('RANSAC', RANSACRegressor(random_state=42)), ]
51+
colors = {'OLS':'green', 'Theil-Sen':'blue', 'RANSAC':'red'}
52+
linestyle = {'OLS':'-', 'Theil-Sen':':', 'RANSAC':'--'}
5153

5254
##############################################################################
5355
# Outliers only in the y direction
@@ -71,7 +73,7 @@
7173
estimator.fit(X, y)
7274
elapsed_time = time.time() - t0
7375
y_pred = estimator.predict(line_x.reshape(2, 1))
74-
plt.plot(line_x, y_pred,
76+
plt.plot(line_x, y_pred, color = colors[name], linestyle = linestyle[name],
7577
label='%s (fit time: %.2fs)' % (name, elapsed_time))
7678

7779
plt.axis('tight')
@@ -100,7 +102,7 @@
100102
estimator.fit(X, y)
101103
elapsed_time = time.time() - t0
102104
y_pred = estimator.predict(line_x.reshape(2, 1))
103-
plt.plot(line_x, y_pred,
105+
plt.plot(line_x, y_pred, color = colors[name], linestyle = linestyle[name],
104106
label='%s (fit time: %.2fs)' % (name, elapsed_time))
105107

106108
plt.axis('tight')

dev/_images/plot_theilsen.png

2.47 KB
Loading

dev/_images/plot_theilsen1.png

2.47 KB
Loading

dev/_images/plot_theilsen_001.png

9.67 KB
Loading

dev/_images/plot_theilsen_0011.png

9.67 KB
Loading

dev/_images/plot_theilsen_002.png

10.6 KB
Loading

dev/_sources/auto_examples/index.txt

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3608,14 +3608,14 @@ Examples concerning the :mod:`sklearn.linear_model` module.
36083608

36093609
.. raw:: html
36103610

3611-
<div class="thumbnailContainer" tooltip="Computes a Theil-Sen Regression on a synthetic dataset.">
3611+
<div class="thumbnailContainer" tooltip="Using orthogonal matching pursuit for recovering a sparse signal from a noisy measurement encod...">
36123612

36133613
.. only:: html
36143614

3615-
.. figure:: linear_model/images/thumb/plot_theilsen.png
3616-
:target: ./linear_model/plot_theilsen.html
3615+
.. figure:: linear_model/images/thumb/plot_omp.png
3616+
:target: ./linear_model/plot_omp.html
36173617

3618-
:ref:`example_linear_model_plot_theilsen.py`
3618+
:ref:`example_linear_model_plot_omp.py`
36193619

36203620

36213621
.. raw:: html
@@ -3627,20 +3627,20 @@ Examples concerning the :mod:`sklearn.linear_model` module.
36273627
.. toctree::
36283628
:hidden:
36293629

3630-
linear_model/plot_theilsen
3630+
linear_model/plot_omp
36313631

36323632

36333633

36343634
.. raw:: html
36353635

3636-
<div class="thumbnailContainer" tooltip="Using orthogonal matching pursuit for recovering a sparse signal from a noisy measurement encod...">
3636+
<div class="thumbnailContainer" tooltip="Computes a Theil-Sen Regression on a synthetic dataset.">
36373637

36383638
.. only:: html
36393639

3640-
.. figure:: linear_model/images/thumb/plot_omp.png
3641-
:target: ./linear_model/plot_omp.html
3640+
.. figure:: linear_model/images/thumb/plot_theilsen.png
3641+
:target: ./linear_model/plot_theilsen.html
36423642

3643-
:ref:`example_linear_model_plot_omp.py`
3643+
:ref:`example_linear_model_plot_theilsen.py`
36443644

36453645

36463646
.. raw:: html
@@ -3652,7 +3652,7 @@ Examples concerning the :mod:`sklearn.linear_model` module.
36523652
.. toctree::
36533653
:hidden:
36543654

3655-
linear_model/plot_omp
3655+
linear_model/plot_theilsen
36563656

36573657

36583658

dev/_sources/auto_examples/linear_model/plot_theilsen.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,6 @@ it then works on a random subset.
6060
.. literalinclude:: plot_theilsen.py
6161
:lines: 36-
6262

63-
**Total running time of the example:** 3.85 seconds
64-
( 0 minutes 3.85 seconds)
63+
**Total running time of the example:** 3.12 seconds
64+
( 0 minutes 3.12 seconds)
6565

dev/auto_examples/index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1092,18 +1092,18 @@ <h2>Tutorial exercises<a class="headerlink" href="#tutorial-exercises" title="Pe
10921092
</div>
10931093
</div><div class="toctree-wrapper compound">
10941094
</div>
1095-
<div class="thumbnailContainer" tooltip="Computes a Theil-Sen Regression on a synthetic dataset."><div class="figure">
1096-
<a class="reference external image-reference" href="./linear_model/plot_theilsen.html"><img alt="../_images/plot_theilsen.png" src="../_images/plot_theilsen.png" /></a>
1097-
<p class="caption"><a class="reference internal" href="linear_model/plot_theilsen.html#example-linear-model-plot-theilsen-py"><em>Theil-Sen Regression</em></a></p>
1098-
</div>
1099-
</div><div class="toctree-wrapper compound">
1100-
</div>
11011095
<div class="thumbnailContainer" tooltip="Using orthogonal matching pursuit for recovering a sparse signal from a noisy measurement encod..."><div class="figure">
11021096
<a class="reference external image-reference" href="./linear_model/plot_omp.html"><img alt="../_images/plot_omp.png" src="../_images/plot_omp.png" /></a>
11031097
<p class="caption"><a class="reference internal" href="linear_model/plot_omp.html#example-linear-model-plot-omp-py"><em>Orthogonal Matching Pursuit</em></a></p>
11041098
</div>
11051099
</div><div class="toctree-wrapper compound">
11061100
</div>
1101+
<div class="thumbnailContainer" tooltip="Computes a Theil-Sen Regression on a synthetic dataset."><div class="figure">
1102+
<a class="reference external image-reference" href="./linear_model/plot_theilsen.html"><img alt="../_images/plot_theilsen.png" src="../_images/plot_theilsen.png" /></a>
1103+
<p class="caption"><a class="reference internal" href="linear_model/plot_theilsen.html#example-linear-model-plot-theilsen-py"><em>Theil-Sen Regression</em></a></p>
1104+
</div>
1105+
</div><div class="toctree-wrapper compound">
1106+
</div>
11071107
<div class="thumbnailContainer" tooltip="Lasso and elastic net (L1 and L2 penalisation) implemented using a coordinate descent."><div class="figure">
11081108
<a class="reference external image-reference" href="./linear_model/plot_lasso_coordinate_descent_path.html"><img alt="../_images/plot_lasso_coordinate_descent_path.png" src="../_images/plot_lasso_coordinate_descent_path.png" /></a>
11091109
<p class="caption"><a class="reference internal" href="linear_model/plot_lasso_coordinate_descent_path.html#example-linear-model-plot-lasso-coordinate-descent-path-py"><em>Lasso and Elastic Net</em></a></p>

dev/auto_examples/linear_model/plot_lasso_coordinate_descent_path.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
<link rel="top" title="scikit-learn 0.18.dev0 documentation" href="../../index.html" />
3838
<link rel="up" title="Examples" href="../index.html" />
3939
<link rel="next" title="Lasso model selection: Cross-Validation / AIC / BIC" href="plot_lasso_model_selection.html" />
40-
<link rel="prev" title="Orthogonal Matching Pursuit" href="plot_omp.html" />
40+
<link rel="prev" title="Theil-Sen Regression" href="plot_theilsen.html" />
4141

4242

4343
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
@@ -113,14 +113,14 @@
113113
<!-- rellinks[1:] is an ugly hack to avoid link to module
114114
index -->
115115
<div class="rellink">
116-
<a href="plot_omp.html"
116+
<a href="plot_theilsen.html"
117117
accesskey="P">Previous
118118
<br/>
119119
<span class="smallrellink">
120-
Orthogonal Ma...
120+
Theil-Sen Reg...
121121
</span>
122122
<span class="hiddenrellink">
123-
Orthogonal Matching Pursuit
123+
Theil-Sen Regression
124124
</span>
125125
</a>
126126
</div>
@@ -285,7 +285,7 @@
285285
<div class="rel">
286286

287287
<div class="buttonPrevious">
288-
<a href="plot_omp.html">Previous
288+
<a href="plot_theilsen.html">Previous
289289
</a>
290290
</div>
291291

0 commit comments

Comments
 (0)