* Change formatting of default values in docstring
* Update sklearn/utils/random.py
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
* Update sklearn/utils/random.py
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
* Update sklearn/utils/random.py
Co-authored-by: Adrin Jalali <adrin.jalali@gmail.com>
* Update sklearn/utils/random.py
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
* Update sklearn/utils/random.py
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Adrin Jalali <adrin.jalali@gmail.com>
Part of #11992.
These were all the things that seemed pretty straight-forward. It's actually a bit bulky but should still be easy to review, hopefully.
ENH improve check_array to warn on dtype conversions
ENH make check_array accept several dtypes
ENH change validation with improved check_array
ENH change astype to avoid copy if possible
ENH remove warn_if_not_float
DOC max_iterations -> max_iter. Make it consistent with kmeans
MAINT Replace the deprecated dx parameter with d in the docstrings
MAINT Deprecation warning for max_iterations parameter.
Break list comprehenesions differently in dummy precit
Drop uncesseray float() in multiclass class_distrribtuion
Combine two lines in random_choice_csc