Skip to content

Commit 054a55c

Browse files
authored
Merge branch 'main' into dop-better-error-message-dispatch
2 parents 029fd5f + 9fec715 commit 054a55c

35 files changed

Lines changed: 13147 additions & 12243 deletions

CHANGES.rst

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ Release history
99
Ongoing Development
1010
===================
1111

12+
New features
13+
------------
14+
- The :meth:`DataOp.skb.full_report` now displays the time each node took to
15+
evaluate. :pr:`1596` by :user:`Jérôme Dockès <jeromedockes>`.
16+
1217
Changes
1318
-------
1419
- Ken embeddings are now deprecated, the functions :func:`datasets.get_ken_embeddings`,
@@ -28,9 +33,24 @@ Bugfixes
2833
was displayed). :pr:`1590` by :user:`Jérôme Dockès <jeromedockes>`.
2934
- Fixed an error that occurred when using ``.skb.concat`` with a pandas dataframe
3035
with column names that aren't strings. :pr:`1594` by :user:`Riccardo Cappuzzo<rcap107>`.
36+
- Fixed the range from which :func:`choose_float` and :func:`choose_int` sample
37+
values when ``log=False`` and ``n_steps`` is ``None``. It was between ``low``
38+
and ``low + high``, now it is between ``low`` and ``high``. :pr:`1603` by
39+
:user:`Jérôme Dockès <jeromedockes>`.
3140
- DataOp hyperparameter search would raise an error when doing classification
3241
and using the ``scoring`` parameter, when the dataop contained no variables.
3342
Fixed in :pr:`1601` by :user:`Jérôme Dockès <jeromedockes>`.
43+
- :class:`SkrubLearner` used to do a prediction on the train set during
44+
``fit()``, this has been fixed.
45+
:pr:`1610` by :user:`Jérôme Dockès <jeromedockes>`.
46+
- :class:`DataOp` would raise errors when containing subclasses of list, tuple
47+
or dict that cannot be initialized with an instance of the builtin type (such
48+
as classes created by ``collections.namedtuple``), this has been fixed.
49+
DataOps now only recurse into the builtin collections to evaluate their items
50+
(not into their subclasses). If you need the items evaluated (ie if they
51+
contain DataOps or Choices), store them in one of the builtin collections.
52+
:pr:`1612` by :user:`Jérôme Dockès <jeromedockes>`.
53+
3454

3555
Release 0.6.1
3656
===================

doc/conf.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,16 @@
105105

106106
extensions.append("sphinx_autosummary_accessors")
107107

108+
try:
109+
import sphinx_sitemap # noqa: F401
110+
111+
extensions.append("sphinx_sitemap")
112+
html_baseurl = "https://skrub-data.org/stable/"
113+
sitemap_url_scheme = "{link}"
114+
except ImportError:
115+
print("ERROR: sphinx_sitemap import failed")
116+
117+
108118
# The suffix(es) of source filenames.
109119
# You can specify multiple suffix as a list of string:
110120
#
@@ -133,6 +143,10 @@
133143
# The full version, including alpha/beta/rc tags.
134144
release = version
135145

146+
# Adding noindex to dev pages so that search engines do not index them
147+
if "dev" in release:
148+
html_meta = {"robots": "noindex"}
149+
136150
# The language for content autogenerated by Sphinx. Refer to documentation
137151
# for a list of supported languages.
138152
#

doc/userguide_data_cleaning.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ Cleaning dataframes and parsing datatypes
2222
... })
2323
>>> df_clean = Cleaner().fit_transform(df)
2424
>>> df_clean
25-
id date
26-
0 1 2024-05-05
27-
1 2 2024-05-06
28-
2 3 2024-05-07
25+
id date
26+
0 1 2024-05-05
27+
1 2 2024-05-06
28+
2 3 2024-05-07
2929

3030
The |Cleaner| converts data types and Nan values in dataframes to ease downstream preprocessing. It includes:
3131

doc/userguide_data_ops_validation.rst

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
.. _userguide_data_ops_validation:
44

5-
=====================================
5+
======================================
66
Tuning and validating Skrub DataOps plans
7-
=====================================
7+
======================================
88

99
To evaluate the prediction performance of our plan, we can fit it on a training
10-
dataset, then obtaining prediction on an unseen, test dataset.
10+
dataset, then obtain predictions on an unseen, test dataset.
1111

1212
In scikit-learn, we pass to estimators and pipelines an ``X`` and ``y`` matrix
1313
with one row per observation from the start. Therefore, we can split the
@@ -59,19 +59,18 @@ Now we can add our supervised estimator:
5959
<Apply Ridge>
6060
Result:
6161
―――――――
62-
target
63-
0 182.673354
64-
1 90.998607
65-
2 166.113476
66-
3 156.034880
67-
4 133.659575
68-
.. ...
69-
437 180.323365
70-
438 135.798908
71-
439 139.855630
72-
440 182.645829
73-
441 83.564413
74-
[442 rows x 1 columns]
62+
0 182.673354
63+
1 90.998607
64+
2 166.113476
65+
3 156.034880
66+
4 133.659575
67+
...
68+
437 180.323365
69+
438 135.798908
70+
439 139.855630
71+
440 182.645829
72+
441 83.564413
73+
Name: target, Length: 442, dtype: float64
7574

7675

7776
Once a pipeline is defined and the ``X`` and ``y`` nodes are identified, skrub

doc/userguide_tablereport.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Usage
2222
The command ``TableReport(df).open()`` opens the report in a browser window.
2323

2424
A demo of the |TableReport|
25-
Pre-computed examples of of the |TableReport| are available
25+
Pre-computed examples of the |TableReport| are available
2626
`here <https://skrub-data.org/skrub-reports/examples/index.html>`_, and you can
2727
try it out on your data `here <https://skrub-data.org/skrub-reports/index.html>`_.
2828

doc/userguide_tablevectorizer.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,9 @@ problems, but may not beat properly tuned ad-hoc pipelines.
8282

8383
.. list-table:: Parameter values choice of :class:`TableVectorizer` when using the :func:`tabular_pipeline` function
8484
:header-rows: 1
85+
:widths: 25 25 25 25
8586

86-
* -
87+
* - Parameter
8788
- ``RandomForest`` models
8889
- ``HistGradientBoosting`` models
8990
- Linear models and others

0 commit comments

Comments
 (0)