Skip to content

Commit 74b6b09

Browse files
committed
fix doc
1 parent 116caee commit 74b6b09

29 files changed

+132
-51
lines changed

_doc/api/mlmodel.rst

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ ClassifierAfterKMeans
3737
.. autoclass:: mlinsights.mlmodel.classification_kmeans.ClassifierAfterKMeans
3838
:members:
3939

40+
CustomizedMultilayerPerceptron
41+
++++++++++++++++++++++++++++++
42+
43+
.. autoclass:: mlinsights.mlmodel.quantile_mlpregressor.CustomizedMultilayerPerceptron
44+
:members:
45+
4046
IntervalRegressor
4147
+++++++++++++++++
4248

@@ -94,6 +100,18 @@ TransformedTargetRegressor2
94100
Transforms
95101
==========
96102

103+
NGramsMixin
104+
+++++++++++
105+
106+
.. autoclass:: mlinsights.mlmodel.sklearn_text.NGramsMixin
107+
:members:
108+
109+
BaseReciprocalTransformer
110+
+++++++++++++++++++++++++
111+
112+
.. autoclass:: mlinsights.mlmodel.sklearn_transform_inv.BaseReciprocalTransformer
113+
:members:
114+
97115
CategoriesToIntegers
98116
++++++++++++++++++++
99117

@@ -170,6 +188,7 @@ SimpleRegressorCriterion
170188
++++++++++++++++++++++++
171189

172190
.. autoclass:: mlinsights.mlmodel.piecewise_tree_regression_criterion.SimpleRegressorCriterion
191+
:members:
173192

174193
SimpleRegressorCriterionFast
175194
++++++++++++++++++++++++++++
@@ -178,13 +197,29 @@ A similar design but a much faster implementation close to what
178197
:epkg:`scikit-learn` implements.
179198

180199
.. autoclass:: mlinsights.mlmodel.piecewise_tree_regression_criterion_fast.SimpleRegressorCriterionFast
200+
:members:
181201

182202
LinearRegressorCriterion
183203
++++++++++++++++++++++++
184204

185205
The next one implements a criterion which optimizes the mean square error
186206
assuming the points falling into one node of the tree are approximated by
187207
a line. The mean square error is the error made with a linear regressor
188-
and not a constant anymore.
208+
and not a constant anymore. The documentation will be completed later.
209+
210+
`mlinsights.mlmodel.piecewise_tree_regression_criterion_linear.LinearRegressorCriterion`
211+
212+
`mlinsights.mlmodel.piecewise_tree_regression_criterion_linear_fast.SimpleRegressorCriterionFast`
213+
214+
Losses
215+
++++++
216+
217+
.. autofunction:: mlinsights.mlmodel.quantile_mlpregressor.absolute_loss
218+
219+
Hidden API
220+
==========
221+
222+
_switch_clusters
223+
++++++++++++++++
189224

190-
.. autoclass:: mlinsights.mlmodel.piecewise_tree_regression_criterion_linear.LinearRegressorCriterion
225+
.. autofunction:: mlinsights.mlmodel._kmeans_constraint_._switch_clusters

_doc/api/search_rank.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,20 @@
22
search_rank
33
===========
44

5+
SearchEngineVectors
6+
+++++++++++++++++++
7+
58
.. autoclass:: mlinsights.search_rank.search_engine_vectors.SearchEngineVectors
69
:members:
710

11+
SearchEnginePredictions
12+
+++++++++++++++++++++++
13+
814
.. autoclass:: mlinsights.search_rank.search_engine_predictions.SearchEnginePredictions
915
:members:
1016

17+
SearchEnginePredictionImages
18+
++++++++++++++++++++++++++++
19+
1120
.. autoclass:: mlinsights.search_rank.search_engine_predictions_images.SearchEnginePredictionImages
1221
:members:

_doc/api/timeseries.rst

Lines changed: 28 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,75 @@
1-
1+
==========
22
Timeseries
33
==========
44

5-
.. contents::
6-
:local:
7-
85
Datasets
9-
++++++++
6+
========
107

118
.. autofunction:: mlinsights.timeseries.datasets.artificial_data
129

1310
Experimentation
14-
+++++++++++++++
11+
===============
1512

1613
.. autofunction:: mlinsights.timeseries.patterns.find_ts_group_pattern
1714

1815
Manipulation
19-
++++++++++++
16+
============
2017

2118
.. autofunction:: mlinsights.timeseries.agg.aggregate_timeseries
2219

2320
Plotting
24-
++++++++
21+
========
2522

2623
.. autofunction:: mlinsights.timeseries.plotting.plot_week_timeseries
2724

2825
Prediction
29-
++++++++++
26+
==========
27+
28+
BaseReciprocalTimeSeriesTransformer
29+
+++++++++++++++++++++++++++++++++++
3030

3131
The following function builds a regular dataset from
3232
a timeseries so that it can be used by machine learning models.
3333

34+
.. autoclass:: mlinsights.timeseries.base.BaseReciprocalTimeSeriesTransformer
35+
:members:
36+
37+
build_ts_X_y
38+
++++++++++++
39+
3440
.. autofunction:: mlinsights.timeseries.utils.build_ts_X_y
3541

42+
BaseTimeSeries
43+
++++++++++++++
44+
3645
The first class defined the template for all timeseries
3746
estimators. It deals with a timeseries ine one dimension
3847
and additional features.
3948

4049
.. autoclass:: mlinsights.timeseries.base.BaseTimeSeries
4150
:members:
4251

43-
the first predictor is a dummy one: it uses the current value to
52+
DummyTimeSeriesRegressor
53+
++++++++++++++++++++++++
54+
55+
The first predictor is a dummy one: it uses the current value to
4456
predict the future.
4557

4658
.. autoclass:: mlinsights.timeseries.dummies.DummyTimeSeriesRegressor
4759
:members:
4860

61+
ARTimeSeriesRegressor
62+
+++++++++++++++++++++
63+
4964
The first regressor is an auto-regressor. It can be estimated
5065
with any regressor implemented in :epkg:`scikit-learn`.
5166

5267
.. autoclass:: mlinsights.timeseries.ar.ARTimeSeriesRegressor
5368
:members:
5469

70+
ts_mape
71+
+++++++
72+
5573
The library implements one scoring function which compares
5674
the prediction to what a dummy predictor would do
5775
by using the previous day as a prediction.

_doc/conf.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
"pandas": ("https://pandas.pydata.org/pandas-docs/stable/", None),
7878
"python": (f"https://docs.python.org/{sys.version_info.major}", None),
7979
"scipy": ("https://docs.scipy.org/doc/scipy/reference", None),
80+
"sklearn": ("https://scikit-learn.org/stable/", None),
8081
"torch": ("https://pytorch.org/docs/stable/", None),
8182
}
8283

@@ -102,6 +103,8 @@
102103
("py:func", ".*numpy[.].*"),
103104
("py:func", ".*scipy[.].*"),
104105
("py:func", ".*sklearn[.].*"),
106+
("py:func", ".*metadata_routing.*"),
107+
("py:func", ".*<locals>.*"),
105108
]
106109

107110
sphinx_gallery_conf = {

_doc/examples/plot_kmeans_l1.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
"""
2+
.. _l-kmeans-l1-example:
3+
24
KMeans with norm L1
35
===================
46

_doc/examples/plot_predictable_tsne.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
"""
2+
.. _l-predictable-tsne-example:
3+
24
Predictable t-SNE
35
=================
46

_doc/examples/plot_quantile_regression.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
"""
2+
.. _l-quantile-regression-example:
3+
24
Quantile Regression
35
===================
46

_doc/examples/plot_search_images_torch.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
"""
2+
.. _l-search-images-torch-example:
3+
24
Search images with deep learning (torch)
35
========================================
46

_doc/examples/plot_visualize_pipeline.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
"""
2+
.. _l-visualize-pipeline-example:
3+
24
Visualize a scikit-learn pipeline
35
=================================
46

mlinsights/helpers/pipeline.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def enumerate_pipeline_models(pipe, coor=None, vs=None):
2020
:param vs: subset of variables for the model, None for all
2121
:return: iterator on models ``tuple(coordinate, model)``
2222
23-
See notebook :ref:`visualizepipelinerst`.
23+
See example :ref:`l-visualize-pipeline-example`.
2424
"""
2525
if coor is None:
2626
coor = (0,)
@@ -161,7 +161,7 @@ def alter_pipeline_for_debugging(pipe):
161161
The object *pipe* is modified, it should be copied
162162
before calling this function if you need the object
163163
untouched after that. The prediction is slower.
164-
See notebook :ref:`visualizepipelinerst`.
164+
See notebook :ref:`l-visualize-pipeline-example`.
165165
"""
166166

167167
def transform(self, X, *args, **kwargs):

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy