Skip to content

Commit 41c1885

Browse files
committed
Pushing the docs to dev/ for branch: master, commit ca08cd5016d843dabf0e52b7479c936f2a724753
1 parent 53ba46d commit 41c1885

File tree

1,198 files changed

+3772
-3768
lines changed

Some content is hidden

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

1,198 files changed

+3772
-3768
lines changed

dev/_downloads/3162dbcc22e3e4dcce68f4934b2c332f/plot_map_data_to_normal.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"cell_type": "markdown",
1616
"metadata": {},
1717
"source": [
18-
"\n# Map data to a normal distribution\n\n\nThis example demonstrates the use of the Box-Cox and Yeo-Johnson transforms\nthrough :class:`preprocessing.PowerTransformer` to map data from various\ndistributions to a normal distribution.\n\nThe power transform is useful as a transformation in modeling problems where\nhomoscedasticity and normality are desired. Below are examples of Box-Cox and\nYeo-Johnwon applied to six different probability distributions: Lognormal,\nChi-squared, Weibull, Gaussian, Uniform, and Bimodal.\n\nNote that the transformations successfully map the data to a normal\ndistribution when applied to certain datasets, but are ineffective with others.\nThis highlights the importance of visualizing the data before and after\ntransformation.\n\nAlso note that even though Box-Cox seems to perform better than Yeo-Johnson for\nlognormal and chi-squared distributions, keep in mind that Box-Cox does not\nsupport inputs with negative values.\n\nFor comparison, we also add the output from\n:class:`preprocessing.QuantileTransformer`. It can force any arbitrary\ndistribution into a gaussian, provided that there are enough training samples\n(thousands). Because it is a non-parametric method, it is harder to interpret\nthan the parametric ones (Box-Cox and Yeo-Johnson).\n\nOn \"small\" datasets (less than a few hundred points), the quantile transformer\nis prone to overfitting. The use of the power transform is then recommended.\n"
18+
"\n# Map data to a normal distribution\n\n\n.. currentmodule:: sklearn.preprocessing\n\nThis example demonstrates the use of the Box-Cox and Yeo-Johnson transforms\nthrough :class:`~PowerTransformer` to map data from various\ndistributions to a normal distribution.\n\nThe power transform is useful as a transformation in modeling problems where\nhomoscedasticity and normality are desired. Below are examples of Box-Cox and\nYeo-Johnwon applied to six different probability distributions: Lognormal,\nChi-squared, Weibull, Gaussian, Uniform, and Bimodal.\n\nNote that the transformations successfully map the data to a normal\ndistribution when applied to certain datasets, but are ineffective with others.\nThis highlights the importance of visualizing the data before and after\ntransformation.\n\nAlso note that even though Box-Cox seems to perform better than Yeo-Johnson for\nlognormal and chi-squared distributions, keep in mind that Box-Cox does not\nsupport inputs with negative values.\n\nFor comparison, we also add the output from\n:class:`~QuantileTransformer`. It can force any arbitrary\ndistribution into a gaussian, provided that there are enough training samples\n(thousands). Because it is a non-parametric method, it is harder to interpret\nthan the parametric ones (Box-Cox and Yeo-Johnson).\n\nOn \"small\" datasets (less than a few hundred points), the quantile transformer\nis prone to overfitting. The use of the power transform is then recommended.\n"
1919
]
2020
},
2121
{
Binary file not shown.
Binary file not shown.

dev/_downloads/de937e46974ce515f5a582fd116c28c6/plot_map_data_to_normal.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
Map data to a normal distribution
44
=================================
55
6+
.. currentmodule:: sklearn.preprocessing
7+
68
This example demonstrates the use of the Box-Cox and Yeo-Johnson transforms
7-
through :class:`preprocessing.PowerTransformer` to map data from various
9+
through :class:`~PowerTransformer` to map data from various
810
distributions to a normal distribution.
911
1012
The power transform is useful as a transformation in modeling problems where
@@ -22,7 +24,7 @@
2224
support inputs with negative values.
2325
2426
For comparison, we also add the output from
25-
:class:`preprocessing.QuantileTransformer`. It can force any arbitrary
27+
:class:`~QuantileTransformer`. It can force any arbitrary
2628
distribution into a gaussian, provided that there are enough training samples
2729
(thousands). Because it is a non-parametric method, it is harder to interpret
2830
than the parametric ones (Box-Cox and Yeo-Johnson).

dev/_downloads/scikit-learn-docs.pdf

-10.1 KB
Binary file not shown.

dev/_images/iris.png

0 Bytes
617 Bytes
617 Bytes
329 Bytes
329 Bytes

0 commit comments

Comments
 (0)