-
Notifications
You must be signed in to change notification settings - Fork 81
/
Copy pathv0.21.html
1835 lines (1607 loc) · 210 KB
/
v0.21.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en" data-content_root="../" >
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />
<meta property="og:title" content="Version 0.21" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://scikit-learn/stable/whats_new/v0.21.html" />
<meta property="og:site_name" content="scikit-learn" />
<meta property="og:description" content="Legend for changelogs something big that you couldn’t do before., something that you couldn’t do before., an existing feature now may not require as much computation or memory., a miscellaneous min..." />
<meta property="og:image" content="https://scikit-learn.org/stable/_static/scikit-learn-logo-small.png" />
<meta property="og:image:alt" content="scikit-learn" />
<meta name="description" content="Legend for changelogs something big that you couldn’t do before., something that you couldn’t do before., an existing feature now may not require as much computation or memory., a miscellaneous min..." />
<title>Version 0.21 — scikit-learn 1.6.1 documentation</title>
<script data-cfasync="false">
document.documentElement.dataset.mode = localStorage.getItem("mode") || "";
document.documentElement.dataset.theme = localStorage.getItem("theme") || "";
</script>
<!--
this give us a css class that will be invisible only if js is disabled
-->
<noscript>
<style>
.pst-js-only { display: none !important; }
</style>
</noscript>
<!-- Loaded before other Sphinx assets -->
<link href="../_static/styles/theme.css?digest=8878045cc6db502f8baf" rel="stylesheet" />
<link href="../_static/styles/pydata-sphinx-theme.css?digest=8878045cc6db502f8baf" rel="stylesheet" />
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=a746c00c" />
<link rel="stylesheet" type="text/css" href="../_static/copybutton.css?v=76b2166b" />
<link rel="stylesheet" type="text/css" href="../_static/plot_directive.css" />
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Vibur" />
<link rel="stylesheet" type="text/css" href="../_static/jupyterlite_sphinx.css?v=e3ca86de" />
<link rel="stylesheet" type="text/css" href="../_static/sg_gallery.css?v=d2d258e8" />
<link rel="stylesheet" type="text/css" href="../_static/sg_gallery-binder.css?v=f4aeca0c" />
<link rel="stylesheet" type="text/css" href="../_static/sg_gallery-dataframe.css?v=2082cf3c" />
<link rel="stylesheet" type="text/css" href="../_static/sg_gallery-rendered-html.css?v=1277b6f3" />
<link rel="stylesheet" type="text/css" href="../_static/sphinx-design.min.css?v=95c83b7e" />
<link rel="stylesheet" type="text/css" href="../_static/styles/colors.css?v=cc94ab7d" />
<link rel="stylesheet" type="text/css" href="../_static/styles/custom.css?v=d67e4bb0" />
<!-- So that users can add custom icons -->
<script src="../_static/scripts/fontawesome.js?digest=8878045cc6db502f8baf"></script>
<!-- Pre-loaded scripts that we'll load fully later -->
<link rel="preload" as="script" href="../_static/scripts/bootstrap.js?digest=8878045cc6db502f8baf" />
<link rel="preload" as="script" href="../_static/scripts/pydata-sphinx-theme.js?digest=8878045cc6db502f8baf" />
<script src="../_static/documentation_options.js?v=d6a008b6"></script>
<script src="../_static/doctools.js?v=9a2dae69"></script>
<script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../_static/clipboard.min.js?v=a7894cd8"></script>
<script src="../_static/copybutton.js?v=97f0b27d"></script>
<script src="../_static/jupyterlite_sphinx.js?v=d6bdf5f8"></script>
<script src="../_static/design-tabs.js?v=f930bc37"></script>
<script data-domain="scikit-learn.org" defer="defer" src="https://views.scientific-python.org/js/script.js"></script>
<script>DOCUMENTATION_OPTIONS.pagename = 'whats_new/v0.21';</script>
<script>
DOCUMENTATION_OPTIONS.theme_version = '0.16.1';
DOCUMENTATION_OPTIONS.theme_switcher_json_url = 'https://scikit-learn.org/dev/_static/versions.json';
DOCUMENTATION_OPTIONS.theme_switcher_version_match = '1.6.1';
DOCUMENTATION_OPTIONS.show_version_warning_banner =
true;
</script>
<script src="../_static/scripts/dropdown.js?v=e2048168"></script>
<script src="../_static/scripts/version-switcher.js?v=a6dd8357"></script>
<script src="../_static/scripts/sg_plotly_resize.js?v=eeb41cab"></script>
<link rel="canonical" href="https://scikit-learn.org/stable/whats_new/v0.21.html" />
<link rel="icon" href="../_static/favicon.ico"/>
<link rel="author" title="About these documents" href="../about.html" />
<link rel="search" title="Search" href="../search.html" />
<link rel="next" title="Version 0.20" href="v0.20.html" />
<link rel="prev" title="Version 0.22" href="v0.22.html" />
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta name="docsearch:language" content="en"/>
<meta name="docsearch:version" content="1.6" />
</head>
<body data-bs-spy="scroll" data-bs-target=".bd-toc-nav" data-offset="180" data-bs-root-margin="0px 0px -60%" data-default-mode="">
<div id="pst-skip-link" class="skip-link d-print-none"><a href="#main-content">Skip to main content</a></div>
<div id="pst-scroll-pixel-helper"></div>
<button type="button" class="btn rounded-pill" id="pst-back-to-top">
<i class="fa-solid fa-arrow-up"></i>Back to top</button>
<dialog id="pst-search-dialog">
<form class="bd-search d-flex align-items-center"
action="../search.html"
method="get">
<i class="fa-solid fa-magnifying-glass"></i>
<input type="search"
class="form-control"
name="q"
placeholder="Search the docs ..."
aria-label="Search the docs ..."
autocomplete="off"
autocorrect="off"
autocapitalize="off"
spellcheck="false"/>
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</dialog>
<div class="pst-async-banner-revealer d-none">
<aside id="bd-header-version-warning" class="d-none d-print-none" aria-label="Version warning"></aside>
</div>
<header class="bd-header navbar navbar-expand-lg bd-navbar d-print-none">
<div class="bd-header__inner bd-page-width">
<button class="pst-navbar-icon sidebar-toggle primary-toggle" aria-label="Site navigation">
<span class="fa-solid fa-bars"></span>
</button>
<div class=" navbar-header-items__start">
<div class="navbar-item">
<a class="navbar-brand logo" href="../index.html">
<img src="../_static/scikit-learn-logo-small.png" class="logo__image only-light" alt="scikit-learn homepage"/>
<img src="../_static/scikit-learn-logo-small.png" class="logo__image only-dark pst-js-only" alt="scikit-learn homepage"/>
</a></div>
</div>
<div class=" navbar-header-items">
<div class="me-auto navbar-header-items__center">
<div class="navbar-item">
<nav>
<ul class="bd-navbar-elements navbar-nav">
<li class="nav-item ">
<a class="nav-link nav-internal" href="../install.html">
Install
</a>
</li>
<li class="nav-item ">
<a class="nav-link nav-internal" href="../user_guide.html">
User Guide
</a>
</li>
<li class="nav-item ">
<a class="nav-link nav-internal" href="../api/index.html">
API
</a>
</li>
<li class="nav-item ">
<a class="nav-link nav-internal" href="../auto_examples/index.html">
Examples
</a>
</li>
<li class="nav-item ">
<a class="nav-link nav-external" href="https://blog.scikit-learn.org/">
Community
</a>
</li>
<li class="nav-item dropdown">
<button class="btn dropdown-toggle nav-item" type="button"
data-bs-toggle="dropdown" aria-expanded="false"
aria-controls="pst-nav-more-links">
More
</button>
<ul id="pst-nav-more-links" class="dropdown-menu">
<li class=" ">
<a class="nav-link dropdown-item nav-internal" href="../getting_started.html">
Getting Started
</a>
</li>
<li class=" current active">
<a class="nav-link dropdown-item nav-internal" href="../whats_new.html">
Release History
</a>
</li>
<li class=" ">
<a class="nav-link dropdown-item nav-internal" href="../glossary.html">
Glossary
</a>
</li>
<li class=" ">
<a class="nav-link dropdown-item nav-external" href="https://scikit-learn.org/dev/developers/index.html">
Development
</a>
</li>
<li class=" ">
<a class="nav-link dropdown-item nav-internal" href="../faq.html">
FAQ
</a>
</li>
<li class=" ">
<a class="nav-link dropdown-item nav-internal" href="../support.html">
Support
</a>
</li>
<li class=" ">
<a class="nav-link dropdown-item nav-internal" href="../related_projects.html">
Related Projects
</a>
</li>
<li class=" ">
<a class="nav-link dropdown-item nav-internal" href="../roadmap.html">
Roadmap
</a>
</li>
<li class=" ">
<a class="nav-link dropdown-item nav-internal" href="../governance.html">
Governance
</a>
</li>
<li class=" ">
<a class="nav-link dropdown-item nav-internal" href="../about.html">
About us
</a>
</li>
</ul>
</li>
</ul>
</nav></div>
</div>
<div class="navbar-header-items__end">
<div class="navbar-item navbar-persistent--container">
<button class="btn btn-sm pst-navbar-icon search-button search-button__button pst-js-only" title="Search" aria-label="Search" data-bs-placement="bottom" data-bs-toggle="tooltip">
<i class="fa-solid fa-magnifying-glass fa-lg"></i>
</button>
</div>
<div class="navbar-item">
<button class="btn btn-sm nav-link pst-navbar-icon theme-switch-button pst-js-only" aria-label="Color mode" data-bs-title="Color mode" data-bs-placement="bottom" data-bs-toggle="tooltip">
<i class="theme-switch fa-solid fa-sun fa-lg" data-mode="light" title="Light"></i>
<i class="theme-switch fa-solid fa-moon fa-lg" data-mode="dark" title="Dark"></i>
<i class="theme-switch fa-solid fa-circle-half-stroke fa-lg" data-mode="auto" title="System Settings"></i>
</button></div>
<div class="navbar-item"><ul class="navbar-icon-links"
aria-label="Icon Links">
<li class="nav-item">
<a href="https://github.com/scikit-learn/scikit-learn" title="GitHub" class="nav-link pst-navbar-icon" rel="noopener" target="_blank" data-bs-toggle="tooltip" data-bs-placement="bottom"><i class="fa-brands fa-square-github fa-lg" aria-hidden="true"></i>
<span class="sr-only">GitHub</span></a>
</li>
</ul></div>
<div class="navbar-item">
<div class="version-switcher__container dropdown pst-js-only">
<button id="pst-version-switcher-button-2"
type="button"
class="version-switcher__button btn btn-sm dropdown-toggle"
data-bs-toggle="dropdown"
aria-haspopup="listbox"
aria-controls="pst-version-switcher-list-2"
aria-label="Version switcher list"
>
Choose version <!-- this text may get changed later by javascript -->
<span class="caret"></span>
</button>
<div id="pst-version-switcher-list-2"
class="version-switcher__menu dropdown-menu list-group-flush py-0"
role="listbox" aria-labelledby="pst-version-switcher-button-2">
<!-- dropdown will be populated by javascript on page load -->
</div>
</div></div>
</div>
</div>
<div class="navbar-persistent--mobile">
<button class="btn btn-sm pst-navbar-icon search-button search-button__button pst-js-only" title="Search" aria-label="Search" data-bs-placement="bottom" data-bs-toggle="tooltip">
<i class="fa-solid fa-magnifying-glass fa-lg"></i>
</button>
</div>
<button class="pst-navbar-icon sidebar-toggle secondary-toggle" aria-label="On this page">
<span class="fa-solid fa-outdent"></span>
</button>
</div>
</header>
<div class="bd-container">
<div class="bd-container__inner bd-page-width">
<dialog id="pst-primary-sidebar-modal"></dialog>
<div id="pst-primary-sidebar" class="bd-sidebar-primary bd-sidebar">
<div class="sidebar-header-items sidebar-primary__section">
<div class="sidebar-header-items__center">
<div class="navbar-item">
<nav>
<ul class="bd-navbar-elements navbar-nav">
<li class="nav-item ">
<a class="nav-link nav-internal" href="../install.html">
Install
</a>
</li>
<li class="nav-item ">
<a class="nav-link nav-internal" href="../user_guide.html">
User Guide
</a>
</li>
<li class="nav-item ">
<a class="nav-link nav-internal" href="../api/index.html">
API
</a>
</li>
<li class="nav-item ">
<a class="nav-link nav-internal" href="../auto_examples/index.html">
Examples
</a>
</li>
<li class="nav-item ">
<a class="nav-link nav-external" href="https://blog.scikit-learn.org/">
Community
</a>
</li>
<li class="nav-item ">
<a class="nav-link nav-internal" href="../getting_started.html">
Getting Started
</a>
</li>
<li class="nav-item current active">
<a class="nav-link nav-internal" href="../whats_new.html">
Release History
</a>
</li>
<li class="nav-item ">
<a class="nav-link nav-internal" href="../glossary.html">
Glossary
</a>
</li>
<li class="nav-item ">
<a class="nav-link nav-external" href="https://scikit-learn.org/dev/developers/index.html">
Development
</a>
</li>
<li class="nav-item ">
<a class="nav-link nav-internal" href="../faq.html">
FAQ
</a>
</li>
<li class="nav-item ">
<a class="nav-link nav-internal" href="../support.html">
Support
</a>
</li>
<li class="nav-item ">
<a class="nav-link nav-internal" href="../related_projects.html">
Related Projects
</a>
</li>
<li class="nav-item ">
<a class="nav-link nav-internal" href="../roadmap.html">
Roadmap
</a>
</li>
<li class="nav-item ">
<a class="nav-link nav-internal" href="../governance.html">
Governance
</a>
</li>
<li class="nav-item ">
<a class="nav-link nav-internal" href="../about.html">
About us
</a>
</li>
</ul>
</nav></div>
</div>
<div class="sidebar-header-items__end">
<div class="navbar-item">
<button class="btn btn-sm nav-link pst-navbar-icon theme-switch-button pst-js-only" aria-label="Color mode" data-bs-title="Color mode" data-bs-placement="bottom" data-bs-toggle="tooltip">
<i class="theme-switch fa-solid fa-sun fa-lg" data-mode="light" title="Light"></i>
<i class="theme-switch fa-solid fa-moon fa-lg" data-mode="dark" title="Dark"></i>
<i class="theme-switch fa-solid fa-circle-half-stroke fa-lg" data-mode="auto" title="System Settings"></i>
</button></div>
<div class="navbar-item"><ul class="navbar-icon-links"
aria-label="Icon Links">
<li class="nav-item">
<a href="https://github.com/scikit-learn/scikit-learn" title="GitHub" class="nav-link pst-navbar-icon" rel="noopener" target="_blank" data-bs-toggle="tooltip" data-bs-placement="bottom"><i class="fa-brands fa-square-github fa-lg" aria-hidden="true"></i>
<span class="sr-only">GitHub</span></a>
</li>
</ul></div>
<div class="navbar-item">
<div class="version-switcher__container dropdown pst-js-only">
<button id="pst-version-switcher-button-3"
type="button"
class="version-switcher__button btn btn-sm dropdown-toggle"
data-bs-toggle="dropdown"
aria-haspopup="listbox"
aria-controls="pst-version-switcher-list-3"
aria-label="Version switcher list"
>
Choose version <!-- this text may get changed later by javascript -->
<span class="caret"></span>
</button>
<div id="pst-version-switcher-list-3"
class="version-switcher__menu dropdown-menu list-group-flush py-0"
role="listbox" aria-labelledby="pst-version-switcher-button-3">
<!-- dropdown will be populated by javascript on page load -->
</div>
</div></div>
</div>
</div>
<div class="sidebar-primary-items__start sidebar-primary__section">
<div class="sidebar-primary-item">
<nav class="bd-docs-nav bd-links"
aria-label="Section Navigation">
<p class="bd-links__title" role="heading" aria-level="1">Section Navigation</p>
<div class="bd-toc-item navbar-nav"><ul class="current nav bd-sidenav">
<li class="toctree-l1"><a class="reference internal" href="v1.6.html">Version 1.6</a></li>
<li class="toctree-l1"><a class="reference internal" href="v1.5.html">Version 1.5</a></li>
<li class="toctree-l1"><a class="reference internal" href="v1.4.html">Version 1.4</a></li>
<li class="toctree-l1"><a class="reference internal" href="v1.3.html">Version 1.3</a></li>
<li class="toctree-l1"><a class="reference internal" href="v1.2.html">Version 1.2</a></li>
<li class="toctree-l1"><a class="reference internal" href="v1.1.html">Version 1.1</a></li>
<li class="toctree-l1"><a class="reference internal" href="v1.0.html">Version 1.0</a></li>
<li class="toctree-l1"><a class="reference internal" href="v0.24.html">Version 0.24</a></li>
<li class="toctree-l1"><a class="reference internal" href="v0.23.html">Version 0.23</a></li>
<li class="toctree-l1"><a class="reference internal" href="v0.22.html">Version 0.22</a></li>
<li class="toctree-l1 current active"><a class="current reference internal" href="#">Version 0.21</a></li>
<li class="toctree-l1"><a class="reference internal" href="v0.20.html">Version 0.20</a></li>
<li class="toctree-l1"><a class="reference internal" href="v0.19.html">Version 0.19</a></li>
<li class="toctree-l1"><a class="reference internal" href="v0.18.html">Version 0.18</a></li>
<li class="toctree-l1"><a class="reference internal" href="v0.17.html">Version 0.17</a></li>
<li class="toctree-l1"><a class="reference internal" href="v0.16.html">Version 0.16</a></li>
<li class="toctree-l1"><a class="reference internal" href="v0.15.html">Version 0.15</a></li>
<li class="toctree-l1"><a class="reference internal" href="v0.14.html">Version 0.14</a></li>
<li class="toctree-l1"><a class="reference internal" href="v0.13.html">Version 0.13</a></li>
<li class="toctree-l1"><a class="reference internal" href="older_versions.html">Older Versions</a></li>
</ul>
</div>
</nav></div>
</div>
<div class="sidebar-primary-items__end sidebar-primary__section">
</div>
</div>
<main id="main-content" class="bd-main" role="main">
<div class="bd-content">
<div class="bd-article-container">
<div class="bd-header-article d-print-none">
<div class="header-article-items header-article__inner">
<div class="header-article-items__start">
<div class="header-article-item">
<nav aria-label="Breadcrumb" class="d-print-none">
<ul class="bd-breadcrumbs">
<li class="breadcrumb-item breadcrumb-home">
<a href="../index.html" class="nav-link" aria-label="Home">
<i class="fa-solid fa-home"></i>
</a>
</li>
<li class="breadcrumb-item"><a href="../whats_new.html" class="nav-link">Release History</a></li>
<li class="breadcrumb-item active" aria-current="page"><span class="ellipsis">Version 0.21</span></li>
</ul>
</nav>
</div>
</div>
</div>
</div>
<div id="searchbox"></div>
<article class="bd-article">
<section id="version-0-21">
<h1>Version 0.21<a class="headerlink" href="#version-0-21" title="Link to this heading">#</a></h1>
<p class="rubric">Legend for changelogs</p>
<ul class="simple">
<li><p><span class="raw-html"><span class="badge text-bg-success">Major Feature</span></span> something big that you couldn’t do before.</p></li>
<li><p><span class="raw-html"><span class="badge text-bg-success">Feature</span></span> something that you couldn’t do before.</p></li>
<li><p><span class="raw-html"><span class="badge text-bg-info">Efficiency</span></span> an existing feature now may not require as much computation or
memory.</p></li>
<li><p><span class="raw-html"><span class="badge text-bg-info">Enhancement</span></span> a miscellaneous minor improvement.</p></li>
<li><p><span class="raw-html"><span class="badge text-bg-danger">Fix</span></span> something that previously didn’t work as documented – or according
to reasonable expectations – should now work.</p></li>
<li><p><span class="raw-html"><span class="badge text-bg-warning">API Change</span></span> you will need to change your code to have the same effect in the
future; or a feature will be removed in the future.</p></li>
</ul>
<section id="version-0-21-3">
<span id="changes-0-21-3"></span><h2>Version 0.21.3<a class="headerlink" href="#version-0-21-3" title="Link to this heading">#</a></h2>
<p><strong>July 30, 2019</strong></p>
<section id="changed-models">
<h3>Changed models<a class="headerlink" href="#changed-models" title="Link to this heading">#</a></h3>
<p>The following estimators and functions, when fit with the same data and
parameters, may produce different models from the previous version. This often
occurs due to changes in the modelling logic (bug fixes or enhancements), or in
random sampling procedures.</p>
<ul class="simple">
<li><p>The v0.20.0 release notes failed to mention a backwards incompatibility in
<a class="reference internal" href="../modules/generated/sklearn.metrics.make_scorer.html#sklearn.metrics.make_scorer" title="sklearn.metrics.make_scorer"><code class="xref py py-func docutils literal notranslate"><span class="pre">metrics.make_scorer</span></code></a> when <code class="docutils literal notranslate"><span class="pre">needs_proba=True</span></code> and <code class="docutils literal notranslate"><span class="pre">y_true</span></code> is binary.
Now, the scorer function is supposed to accept a 1D <code class="docutils literal notranslate"><span class="pre">y_pred</span></code> (i.e.,
probability of the positive class, shape <code class="docutils literal notranslate"><span class="pre">(n_samples,)</span></code>), instead of a 2D
<code class="docutils literal notranslate"><span class="pre">y_pred</span></code> (i.e., shape <code class="docutils literal notranslate"><span class="pre">(n_samples,</span> <span class="pre">2)</span></code>).</p></li>
</ul>
</section>
<section id="changelog">
<h3>Changelog<a class="headerlink" href="#changelog" title="Link to this heading">#</a></h3>
<section id="sklearn-cluster">
<h4><a class="reference internal" href="../api/sklearn.cluster.html#module-sklearn.cluster" title="sklearn.cluster"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.cluster</span></code></a><a class="headerlink" href="#sklearn-cluster" title="Link to this heading">#</a></h4>
<ul class="simple">
<li><p><span class="raw-html"><span class="badge text-bg-danger">Fix</span></span> Fixed a bug in <a class="reference internal" href="../modules/generated/sklearn.cluster.KMeans.html#sklearn.cluster.KMeans" title="sklearn.cluster.KMeans"><code class="xref py py-class docutils literal notranslate"><span class="pre">cluster.KMeans</span></code></a> where computation with
<code class="docutils literal notranslate"><span class="pre">init='random'</span></code> was single threaded for <code class="docutils literal notranslate"><span class="pre">n_jobs</span> <span class="pre">></span> <span class="pre">1</span></code> or <code class="docutils literal notranslate"><span class="pre">n_jobs</span> <span class="pre">=</span> <span class="pre">-1</span></code>.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/12955">#12955</a> by <a class="reference external" href="https://github.com/nixphix">Prabakaran Kumaresshan</a>.</p></li>
<li><p><span class="raw-html"><span class="badge text-bg-danger">Fix</span></span> Fixed a bug in <a class="reference internal" href="../modules/generated/sklearn.cluster.OPTICS.html#sklearn.cluster.OPTICS" title="sklearn.cluster.OPTICS"><code class="xref py py-class docutils literal notranslate"><span class="pre">cluster.OPTICS</span></code></a> where users were unable to pass
float <code class="docutils literal notranslate"><span class="pre">min_samples</span></code> and <code class="docutils literal notranslate"><span class="pre">min_cluster_size</span></code>. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/14496">#14496</a> by
<a class="reference external" href="https://github.com/someusername1">Fabian Klopfer</a>
and <a class="reference external" href="https://github.com/qinhanmin2014">Hanmin Qin</a>.</p></li>
<li><p><span class="raw-html"><span class="badge text-bg-danger">Fix</span></span> Fixed a bug in <a class="reference internal" href="../modules/generated/sklearn.cluster.KMeans.html#sklearn.cluster.KMeans" title="sklearn.cluster.KMeans"><code class="xref py py-class docutils literal notranslate"><span class="pre">cluster.KMeans</span></code></a> where KMeans++ initialisation
could rarely result in an IndexError. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/issues/11756">#11756</a> by <a class="reference external" href="https://joelnothman.com/">Joel Nothman</a>.</p></li>
</ul>
</section>
<section id="sklearn-compose">
<h4><a class="reference internal" href="../api/sklearn.compose.html#module-sklearn.compose" title="sklearn.compose"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.compose</span></code></a><a class="headerlink" href="#sklearn-compose" title="Link to this heading">#</a></h4>
<ul class="simple">
<li><p><span class="raw-html"><span class="badge text-bg-danger">Fix</span></span> Fixed an issue in <a class="reference internal" href="../modules/generated/sklearn.compose.ColumnTransformer.html#sklearn.compose.ColumnTransformer" title="sklearn.compose.ColumnTransformer"><code class="xref py py-class docutils literal notranslate"><span class="pre">compose.ColumnTransformer</span></code></a> where using
DataFrames whose column order differs between :func:<code class="docutils literal notranslate"><span class="pre">fit</span></code> and
:func:<code class="docutils literal notranslate"><span class="pre">transform</span></code> could lead to silently passing incorrect columns to the
<code class="docutils literal notranslate"><span class="pre">remainder</span></code> transformer.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/14237">#14237</a> by <code class="docutils literal notranslate"><span class="pre">Andreas</span> <span class="pre">Schuderer</span> <span class="pre"><schuderer></span></code>.</p></li>
</ul>
</section>
<section id="sklearn-datasets">
<h4><a class="reference internal" href="../api/sklearn.datasets.html#module-sklearn.datasets" title="sklearn.datasets"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.datasets</span></code></a><a class="headerlink" href="#sklearn-datasets" title="Link to this heading">#</a></h4>
<ul class="simple">
<li><p><span class="raw-html"><span class="badge text-bg-danger">Fix</span></span> <a class="reference internal" href="../modules/generated/sklearn.datasets.fetch_california_housing.html#sklearn.datasets.fetch_california_housing" title="sklearn.datasets.fetch_california_housing"><code class="xref py py-func docutils literal notranslate"><span class="pre">datasets.fetch_california_housing</span></code></a>,
<a class="reference internal" href="../modules/generated/sklearn.datasets.fetch_covtype.html#sklearn.datasets.fetch_covtype" title="sklearn.datasets.fetch_covtype"><code class="xref py py-func docutils literal notranslate"><span class="pre">datasets.fetch_covtype</span></code></a>,
<a class="reference internal" href="../modules/generated/sklearn.datasets.fetch_kddcup99.html#sklearn.datasets.fetch_kddcup99" title="sklearn.datasets.fetch_kddcup99"><code class="xref py py-func docutils literal notranslate"><span class="pre">datasets.fetch_kddcup99</span></code></a>, <a class="reference internal" href="../modules/generated/sklearn.datasets.fetch_olivetti_faces.html#sklearn.datasets.fetch_olivetti_faces" title="sklearn.datasets.fetch_olivetti_faces"><code class="xref py py-func docutils literal notranslate"><span class="pre">datasets.fetch_olivetti_faces</span></code></a>,
<a class="reference internal" href="../modules/generated/sklearn.datasets.fetch_rcv1.html#sklearn.datasets.fetch_rcv1" title="sklearn.datasets.fetch_rcv1"><code class="xref py py-func docutils literal notranslate"><span class="pre">datasets.fetch_rcv1</span></code></a>, and <a class="reference internal" href="../modules/generated/sklearn.datasets.fetch_species_distributions.html#sklearn.datasets.fetch_species_distributions" title="sklearn.datasets.fetch_species_distributions"><code class="xref py py-func docutils literal notranslate"><span class="pre">datasets.fetch_species_distributions</span></code></a>
try to persist the previously cache using the new <code class="docutils literal notranslate"><span class="pre">joblib</span></code> if the cached
data was persisted using the deprecated <code class="docutils literal notranslate"><span class="pre">sklearn.externals.joblib</span></code>. This
behavior is set to be deprecated and removed in v0.23.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/14197">#14197</a> by <a class="reference external" href="https://github.com/adrinjalali">Adrin Jalali</a>.</p></li>
</ul>
</section>
<section id="sklearn-ensemble">
<h4><a class="reference internal" href="../api/sklearn.ensemble.html#module-sklearn.ensemble" title="sklearn.ensemble"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.ensemble</span></code></a><a class="headerlink" href="#sklearn-ensemble" title="Link to this heading">#</a></h4>
<ul class="simple">
<li><p><span class="raw-html"><span class="badge text-bg-danger">Fix</span></span> Fix zero division error in <a class="reference internal" href="../modules/generated/sklearn.ensemble.HistGradientBoostingClassifier.html#sklearn.ensemble.HistGradientBoostingClassifier" title="sklearn.ensemble.HistGradientBoostingClassifier"><code class="xref py py-class docutils literal notranslate"><span class="pre">ensemble.HistGradientBoostingClassifier</span></code></a> and
<a class="reference internal" href="../modules/generated/sklearn.ensemble.HistGradientBoostingRegressor.html#sklearn.ensemble.HistGradientBoostingRegressor" title="sklearn.ensemble.HistGradientBoostingRegressor"><code class="xref py py-class docutils literal notranslate"><span class="pre">ensemble.HistGradientBoostingRegressor</span></code></a>.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/14024">#14024</a> by <code class="docutils literal notranslate"><span class="pre">Nicolas</span> <span class="pre">Hug</span> <span class="pre"><NicolasHug></span></code>.</p></li>
</ul>
</section>
<section id="sklearn-impute">
<h4><a class="reference internal" href="../api/sklearn.impute.html#module-sklearn.impute" title="sklearn.impute"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.impute</span></code></a><a class="headerlink" href="#sklearn-impute" title="Link to this heading">#</a></h4>
<ul class="simple">
<li><p><span class="raw-html"><span class="badge text-bg-danger">Fix</span></span> Fixed a bug in <a class="reference internal" href="../modules/generated/sklearn.impute.SimpleImputer.html#sklearn.impute.SimpleImputer" title="sklearn.impute.SimpleImputer"><code class="xref py py-class docutils literal notranslate"><span class="pre">impute.SimpleImputer</span></code></a> and
<a class="reference internal" href="../modules/generated/sklearn.impute.IterativeImputer.html#sklearn.impute.IterativeImputer" title="sklearn.impute.IterativeImputer"><code class="xref py py-class docutils literal notranslate"><span class="pre">impute.IterativeImputer</span></code></a> so that no errors are thrown when there are
missing values in training data. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/13974">#13974</a> by <code class="docutils literal notranslate"><span class="pre">Frank</span> <span class="pre">Hoang</span> <span class="pre"><fhoang7></span></code>.</p></li>
</ul>
</section>
<section id="sklearn-inspection">
<h4><a class="reference internal" href="../api/sklearn.inspection.html#module-sklearn.inspection" title="sklearn.inspection"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.inspection</span></code></a><a class="headerlink" href="#sklearn-inspection" title="Link to this heading">#</a></h4>
<ul class="simple">
<li><p><span class="raw-html"><span class="badge text-bg-danger">Fix</span></span> Fixed a bug in <code class="docutils literal notranslate"><span class="pre">inspection.plot_partial_dependence</span></code> where
<code class="docutils literal notranslate"><span class="pre">target</span></code> parameter was not being taken into account for multiclass problems.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/14393">#14393</a> by <a class="reference external" href="https://github.com/guillemgsubies">Guillem G. Subies</a>.</p></li>
</ul>
</section>
<section id="sklearn-linear-model">
<h4><a class="reference internal" href="../api/sklearn.linear_model.html#module-sklearn.linear_model" title="sklearn.linear_model"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.linear_model</span></code></a><a class="headerlink" href="#sklearn-linear-model" title="Link to this heading">#</a></h4>
<ul class="simple">
<li><p><span class="raw-html"><span class="badge text-bg-danger">Fix</span></span> Fixed a bug in <a class="reference internal" href="../modules/generated/sklearn.linear_model.LogisticRegressionCV.html#sklearn.linear_model.LogisticRegressionCV" title="sklearn.linear_model.LogisticRegressionCV"><code class="xref py py-class docutils literal notranslate"><span class="pre">linear_model.LogisticRegressionCV</span></code></a> where
<code class="docutils literal notranslate"><span class="pre">refit=False</span></code> would fail depending on the <code class="docutils literal notranslate"><span class="pre">'multiclass'</span></code> and
<code class="docutils literal notranslate"><span class="pre">'penalty'</span></code> parameters (regression introduced in 0.21). <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/14087">#14087</a> by
<a class="reference external" href="https://github.com/NicolasHug">Nicolas Hug</a>.</p></li>
<li><p><span class="raw-html"><span class="badge text-bg-danger">Fix</span></span> Compatibility fix for <a class="reference internal" href="../modules/generated/sklearn.linear_model.ARDRegression.html#sklearn.linear_model.ARDRegression" title="sklearn.linear_model.ARDRegression"><code class="xref py py-class docutils literal notranslate"><span class="pre">linear_model.ARDRegression</span></code></a> and
Scipy>=1.3.0. Adapts to upstream changes to the default <code class="docutils literal notranslate"><span class="pre">pinvh</span></code> cutoff
threshold which otherwise results in poor accuracy in some cases.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/14067">#14067</a> by <a class="reference external" href="https://github.com/timstaley">Tim Staley</a>.</p></li>
</ul>
</section>
<section id="sklearn-neighbors">
<h4><a class="reference internal" href="../api/sklearn.neighbors.html#module-sklearn.neighbors" title="sklearn.neighbors"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.neighbors</span></code></a><a class="headerlink" href="#sklearn-neighbors" title="Link to this heading">#</a></h4>
<ul class="simple">
<li><p><span class="raw-html"><span class="badge text-bg-danger">Fix</span></span> Fixed a bug in <a class="reference internal" href="../modules/generated/sklearn.neighbors.NeighborhoodComponentsAnalysis.html#sklearn.neighbors.NeighborhoodComponentsAnalysis" title="sklearn.neighbors.NeighborhoodComponentsAnalysis"><code class="xref py py-class docutils literal notranslate"><span class="pre">neighbors.NeighborhoodComponentsAnalysis</span></code></a> where
the validation of initial parameters <code class="docutils literal notranslate"><span class="pre">n_components</span></code>, <code class="docutils literal notranslate"><span class="pre">max_iter</span></code> and
<code class="docutils literal notranslate"><span class="pre">tol</span></code> required too strict types. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/14092">#14092</a> by
<a class="reference external" href="https://github.com/jeremiedbb">Jérémie du Boisberranger</a>.</p></li>
</ul>
</section>
<section id="sklearn-tree">
<h4><a class="reference internal" href="../api/sklearn.tree.html#module-sklearn.tree" title="sklearn.tree"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.tree</span></code></a><a class="headerlink" href="#sklearn-tree" title="Link to this heading">#</a></h4>
<ul class="simple">
<li><p><span class="raw-html"><span class="badge text-bg-danger">Fix</span></span> Fixed bug in <a class="reference internal" href="../modules/generated/sklearn.tree.export_text.html#sklearn.tree.export_text" title="sklearn.tree.export_text"><code class="xref py py-func docutils literal notranslate"><span class="pre">tree.export_text</span></code></a> when the tree has one feature and
a single feature name is passed in. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/14053">#14053</a> by <code class="docutils literal notranslate"><span class="pre">Thomas</span> <span class="pre">Fan</span></code>.</p></li>
<li><p><span class="raw-html"><span class="badge text-bg-danger">Fix</span></span> Fixed an issue with <a class="reference internal" href="../modules/generated/sklearn.tree.plot_tree.html#sklearn.tree.plot_tree" title="sklearn.tree.plot_tree"><code class="xref py py-func docutils literal notranslate"><span class="pre">tree.plot_tree</span></code></a> where it displayed
entropy calculations even for <code class="docutils literal notranslate"><span class="pre">gini</span></code> criterion in DecisionTreeClassifiers.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/13947">#13947</a> by <a class="reference external" href="https://github.com/fhoang7">Frank Hoang</a>.</p></li>
</ul>
</section>
</section>
</section>
<section id="version-0-21-2">
<span id="changes-0-21-2"></span><h2>Version 0.21.2<a class="headerlink" href="#version-0-21-2" title="Link to this heading">#</a></h2>
<p><strong>24 May 2019</strong></p>
<section id="id1">
<h3>Changelog<a class="headerlink" href="#id1" title="Link to this heading">#</a></h3>
<section id="sklearn-decomposition">
<h4><a class="reference internal" href="../api/sklearn.decomposition.html#module-sklearn.decomposition" title="sklearn.decomposition"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.decomposition</span></code></a><a class="headerlink" href="#sklearn-decomposition" title="Link to this heading">#</a></h4>
<ul class="simple">
<li><p><span class="raw-html"><span class="badge text-bg-danger">Fix</span></span> Fixed a bug in <a class="reference internal" href="../modules/generated/sklearn.cross_decomposition.CCA.html#sklearn.cross_decomposition.CCA" title="sklearn.cross_decomposition.CCA"><code class="xref py py-class docutils literal notranslate"><span class="pre">cross_decomposition.CCA</span></code></a> improving numerical
stability when <code class="docutils literal notranslate"><span class="pre">Y</span></code> is close to zero. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/13903">#13903</a> by <a class="reference external" href="https://github.com/thomasjpfan">Thomas Fan</a>.</p></li>
</ul>
</section>
<section id="sklearn-metrics">
<h4><a class="reference internal" href="../api/sklearn.metrics.html#module-sklearn.metrics" title="sklearn.metrics"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.metrics</span></code></a><a class="headerlink" href="#sklearn-metrics" title="Link to this heading">#</a></h4>
<ul class="simple">
<li><p><span class="raw-html"><span class="badge text-bg-danger">Fix</span></span> Fixed a bug in <a class="reference internal" href="../modules/generated/sklearn.metrics.pairwise.euclidean_distances.html#sklearn.metrics.pairwise.euclidean_distances" title="sklearn.metrics.pairwise.euclidean_distances"><code class="xref py py-func docutils literal notranslate"><span class="pre">metrics.pairwise.euclidean_distances</span></code></a> where a
part of the distance matrix was left un-instanciated for sufficiently large
float32 datasets (regression introduced in 0.21). <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/13910">#13910</a> by
<a class="reference external" href="https://github.com/jeremiedbb">Jérémie du Boisberranger</a>.</p></li>
</ul>
</section>
<section id="sklearn-preprocessing">
<h4><a class="reference internal" href="../api/sklearn.preprocessing.html#module-sklearn.preprocessing" title="sklearn.preprocessing"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.preprocessing</span></code></a><a class="headerlink" href="#sklearn-preprocessing" title="Link to this heading">#</a></h4>
<ul class="simple">
<li><p><span class="raw-html"><span class="badge text-bg-danger">Fix</span></span> Fixed a bug in <a class="reference internal" href="../modules/generated/sklearn.preprocessing.OneHotEncoder.html#sklearn.preprocessing.OneHotEncoder" title="sklearn.preprocessing.OneHotEncoder"><code class="xref py py-class docutils literal notranslate"><span class="pre">preprocessing.OneHotEncoder</span></code></a> where the new
<code class="docutils literal notranslate"><span class="pre">drop</span></code> parameter was not reflected in <code class="docutils literal notranslate"><span class="pre">get_feature_names</span></code>. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/13894">#13894</a>
by <a class="reference external" href="https://github.com/jamesmyatt">James Myatt</a>.</p></li>
</ul>
</section>
<section id="sklearn-utils-sparsefuncs">
<h4><code class="docutils literal notranslate"><span class="pre">sklearn.utils.sparsefuncs</span></code><a class="headerlink" href="#sklearn-utils-sparsefuncs" title="Link to this heading">#</a></h4>
<ul class="simple">
<li><p><span class="raw-html"><span class="badge text-bg-danger">Fix</span></span> Fixed a bug where <code class="docutils literal notranslate"><span class="pre">min_max_axis</span></code> would fail on 32-bit systems
for certain large inputs. This affects <a class="reference internal" href="../modules/generated/sklearn.preprocessing.MaxAbsScaler.html#sklearn.preprocessing.MaxAbsScaler" title="sklearn.preprocessing.MaxAbsScaler"><code class="xref py py-class docutils literal notranslate"><span class="pre">preprocessing.MaxAbsScaler</span></code></a>,
<a class="reference internal" href="../modules/generated/sklearn.preprocessing.normalize.html#sklearn.preprocessing.normalize" title="sklearn.preprocessing.normalize"><code class="xref py py-func docutils literal notranslate"><span class="pre">preprocessing.normalize</span></code></a> and <a class="reference internal" href="../modules/generated/sklearn.preprocessing.LabelBinarizer.html#sklearn.preprocessing.LabelBinarizer" title="sklearn.preprocessing.LabelBinarizer"><code class="xref py py-class docutils literal notranslate"><span class="pre">preprocessing.LabelBinarizer</span></code></a>.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/13741">#13741</a> by <a class="reference external" href="https://github.com/rlms">Roddy MacSween</a>.</p></li>
</ul>
</section>
</section>
</section>
<section id="version-0-21-1">
<span id="changes-0-21-1"></span><h2>Version 0.21.1<a class="headerlink" href="#version-0-21-1" title="Link to this heading">#</a></h2>
<p><strong>17 May 2019</strong></p>
<p>This is a bug-fix release to primarily resolve some packaging issues in version
0.21.0. It also includes minor documentation improvements and some bug fixes.</p>
<section id="id2">
<h3>Changelog<a class="headerlink" href="#id2" title="Link to this heading">#</a></h3>
<section id="id3">
<h4><a class="reference internal" href="../api/sklearn.inspection.html#module-sklearn.inspection" title="sklearn.inspection"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.inspection</span></code></a><a class="headerlink" href="#id3" title="Link to this heading">#</a></h4>
<ul class="simple">
<li><p><span class="raw-html"><span class="badge text-bg-danger">Fix</span></span> Fixed a bug in <a class="reference internal" href="../modules/generated/sklearn.inspection.partial_dependence.html#sklearn.inspection.partial_dependence" title="sklearn.inspection.partial_dependence"><code class="xref py py-func docutils literal notranslate"><span class="pre">inspection.partial_dependence</span></code></a> to only check
classifier and not regressor for the multiclass-multioutput case.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/14309">#14309</a> by <a class="reference external" href="https://github.com/glemaitre">Guillaume Lemaitre</a>.</p></li>
</ul>
</section>
<section id="id4">
<h4><a class="reference internal" href="../api/sklearn.metrics.html#module-sklearn.metrics" title="sklearn.metrics"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.metrics</span></code></a><a class="headerlink" href="#id4" title="Link to this heading">#</a></h4>
<ul class="simple">
<li><p><span class="raw-html"><span class="badge text-bg-danger">Fix</span></span> Fixed a bug in <a class="reference internal" href="../modules/generated/sklearn.metrics.pairwise_distances.html#sklearn.metrics.pairwise_distances" title="sklearn.metrics.pairwise_distances"><code class="xref py py-class docutils literal notranslate"><span class="pre">metrics.pairwise_distances</span></code></a> where it would raise
<code class="docutils literal notranslate"><span class="pre">AttributeError</span></code> for boolean metrics when <code class="docutils literal notranslate"><span class="pre">X</span></code> had a boolean dtype and
<code class="docutils literal notranslate"><span class="pre">Y</span> <span class="pre">==</span> <span class="pre">None</span></code>.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/issues/13864">#13864</a> by <a class="reference external" href="https://github.com/rick2047">Paresh Mathur</a>.</p></li>
<li><p><span class="raw-html"><span class="badge text-bg-danger">Fix</span></span> Fixed two bugs in <a class="reference internal" href="../modules/generated/sklearn.metrics.pairwise_distances.html#sklearn.metrics.pairwise_distances" title="sklearn.metrics.pairwise_distances"><code class="xref py py-class docutils literal notranslate"><span class="pre">metrics.pairwise_distances</span></code></a> when
<code class="docutils literal notranslate"><span class="pre">n_jobs</span> <span class="pre">></span> <span class="pre">1</span></code>. First it used to return a distance matrix with same dtype as
input, even for integer dtype. Then the diagonal was not zeros for euclidean
metric when <code class="docutils literal notranslate"><span class="pre">Y</span></code> is <code class="docutils literal notranslate"><span class="pre">X</span></code>. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/issues/13877">#13877</a> by
<a class="reference external" href="https://github.com/jeremiedbb">Jérémie du Boisberranger</a>.</p></li>
</ul>
</section>
<section id="id5">
<h4><a class="reference internal" href="../api/sklearn.neighbors.html#module-sklearn.neighbors" title="sklearn.neighbors"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.neighbors</span></code></a><a class="headerlink" href="#id5" title="Link to this heading">#</a></h4>
<ul class="simple">
<li><p><span class="raw-html"><span class="badge text-bg-danger">Fix</span></span> Fixed a bug in <a class="reference internal" href="../modules/generated/sklearn.neighbors.KernelDensity.html#sklearn.neighbors.KernelDensity" title="sklearn.neighbors.KernelDensity"><code class="xref py py-class docutils literal notranslate"><span class="pre">neighbors.KernelDensity</span></code></a> which could not be
restored from a pickle if <code class="docutils literal notranslate"><span class="pre">sample_weight</span></code> had been used.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/issues/13772">#13772</a> by <a class="reference external" href="https://github.com/aditya1702">Aditya Vyas</a>.</p></li>
</ul>
</section>
</section>
</section>
<section id="version-0-21-0">
<span id="changes-0-21"></span><h2>Version 0.21.0<a class="headerlink" href="#version-0-21-0" title="Link to this heading">#</a></h2>
<p><strong>May 2019</strong></p>
<section id="id6">
<h3>Changed models<a class="headerlink" href="#id6" title="Link to this heading">#</a></h3>
<p>The following estimators and functions, when fit with the same data and
parameters, may produce different models from the previous version. This often
occurs due to changes in the modelling logic (bug fixes or enhancements), or in
random sampling procedures.</p>
<ul class="simple">
<li><p><a class="reference internal" href="../modules/generated/sklearn.discriminant_analysis.LinearDiscriminantAnalysis.html#sklearn.discriminant_analysis.LinearDiscriminantAnalysis" title="sklearn.discriminant_analysis.LinearDiscriminantAnalysis"><code class="xref py py-class docutils literal notranslate"><span class="pre">discriminant_analysis.LinearDiscriminantAnalysis</span></code></a> for multiclass
classification. <span class="raw-html"><span class="badge text-bg-danger">Fix</span></span> </p></li>
<li><p><a class="reference internal" href="../modules/generated/sklearn.discriminant_analysis.LinearDiscriminantAnalysis.html#sklearn.discriminant_analysis.LinearDiscriminantAnalysis" title="sklearn.discriminant_analysis.LinearDiscriminantAnalysis"><code class="xref py py-class docutils literal notranslate"><span class="pre">discriminant_analysis.LinearDiscriminantAnalysis</span></code></a> with ‘eigen’
solver. <span class="raw-html"><span class="badge text-bg-danger">Fix</span></span> </p></li>
<li><p><a class="reference internal" href="../modules/generated/sklearn.linear_model.BayesianRidge.html#sklearn.linear_model.BayesianRidge" title="sklearn.linear_model.BayesianRidge"><code class="xref py py-class docutils literal notranslate"><span class="pre">linear_model.BayesianRidge</span></code></a> <span class="raw-html"><span class="badge text-bg-danger">Fix</span></span> </p></li>
<li><p>Decision trees and derived ensembles when both <code class="docutils literal notranslate"><span class="pre">max_depth</span></code> and
<code class="docutils literal notranslate"><span class="pre">max_leaf_nodes</span></code> are set. <span class="raw-html"><span class="badge text-bg-danger">Fix</span></span> </p></li>
<li><p><a class="reference internal" href="../modules/generated/sklearn.linear_model.LogisticRegression.html#sklearn.linear_model.LogisticRegression" title="sklearn.linear_model.LogisticRegression"><code class="xref py py-class docutils literal notranslate"><span class="pre">linear_model.LogisticRegression</span></code></a> and
<a class="reference internal" href="../modules/generated/sklearn.linear_model.LogisticRegressionCV.html#sklearn.linear_model.LogisticRegressionCV" title="sklearn.linear_model.LogisticRegressionCV"><code class="xref py py-class docutils literal notranslate"><span class="pre">linear_model.LogisticRegressionCV</span></code></a> with ‘saga’ solver. <span class="raw-html"><span class="badge text-bg-danger">Fix</span></span> </p></li>
<li><p><a class="reference internal" href="../modules/generated/sklearn.ensemble.GradientBoostingClassifier.html#sklearn.ensemble.GradientBoostingClassifier" title="sklearn.ensemble.GradientBoostingClassifier"><code class="xref py py-class docutils literal notranslate"><span class="pre">ensemble.GradientBoostingClassifier</span></code></a> <span class="raw-html"><span class="badge text-bg-danger">Fix</span></span> </p></li>
<li><p><a class="reference internal" href="../modules/generated/sklearn.feature_extraction.text.HashingVectorizer.html#sklearn.feature_extraction.text.HashingVectorizer" title="sklearn.feature_extraction.text.HashingVectorizer"><code class="xref py py-class docutils literal notranslate"><span class="pre">sklearn.feature_extraction.text.HashingVectorizer</span></code></a>,
<a class="reference internal" href="../modules/generated/sklearn.feature_extraction.text.TfidfVectorizer.html#sklearn.feature_extraction.text.TfidfVectorizer" title="sklearn.feature_extraction.text.TfidfVectorizer"><code class="xref py py-class docutils literal notranslate"><span class="pre">sklearn.feature_extraction.text.TfidfVectorizer</span></code></a>, and
<a class="reference internal" href="../modules/generated/sklearn.feature_extraction.text.CountVectorizer.html#sklearn.feature_extraction.text.CountVectorizer" title="sklearn.feature_extraction.text.CountVectorizer"><code class="xref py py-class docutils literal notranslate"><span class="pre">sklearn.feature_extraction.text.CountVectorizer</span></code></a> <span class="raw-html"><span class="badge text-bg-danger">Fix</span></span> </p></li>
<li><p><a class="reference internal" href="../modules/generated/sklearn.neural_network.MLPClassifier.html#sklearn.neural_network.MLPClassifier" title="sklearn.neural_network.MLPClassifier"><code class="xref py py-class docutils literal notranslate"><span class="pre">neural_network.MLPClassifier</span></code></a> <span class="raw-html"><span class="badge text-bg-danger">Fix</span></span> </p></li>
<li><p><a class="reference internal" href="../modules/generated/sklearn.svm.SVC.html#sklearn.svm.SVC.decision_function" title="sklearn.svm.SVC.decision_function"><code class="xref py py-func docutils literal notranslate"><span class="pre">svm.SVC.decision_function</span></code></a> and
<a class="reference internal" href="../modules/generated/sklearn.multiclass.OneVsOneClassifier.html#sklearn.multiclass.OneVsOneClassifier.decision_function" title="sklearn.multiclass.OneVsOneClassifier.decision_function"><code class="xref py py-func docutils literal notranslate"><span class="pre">multiclass.OneVsOneClassifier.decision_function</span></code></a>. <span class="raw-html"><span class="badge text-bg-danger">Fix</span></span> </p></li>
<li><p><a class="reference internal" href="../modules/generated/sklearn.linear_model.SGDClassifier.html#sklearn.linear_model.SGDClassifier" title="sklearn.linear_model.SGDClassifier"><code class="xref py py-class docutils literal notranslate"><span class="pre">linear_model.SGDClassifier</span></code></a> and any derived classifiers. <span class="raw-html"><span class="badge text-bg-danger">Fix</span></span> </p></li>
<li><p>Any model using the <code class="docutils literal notranslate"><span class="pre">linear_model._sag.sag_solver</span></code> function with a <code class="docutils literal notranslate"><span class="pre">0</span></code>
seed, including <a class="reference internal" href="../modules/generated/sklearn.linear_model.LogisticRegression.html#sklearn.linear_model.LogisticRegression" title="sklearn.linear_model.LogisticRegression"><code class="xref py py-class docutils literal notranslate"><span class="pre">linear_model.LogisticRegression</span></code></a>,
<a class="reference internal" href="../modules/generated/sklearn.linear_model.LogisticRegressionCV.html#sklearn.linear_model.LogisticRegressionCV" title="sklearn.linear_model.LogisticRegressionCV"><code class="xref py py-class docutils literal notranslate"><span class="pre">linear_model.LogisticRegressionCV</span></code></a>, <a class="reference internal" href="../modules/generated/sklearn.linear_model.Ridge.html#sklearn.linear_model.Ridge" title="sklearn.linear_model.Ridge"><code class="xref py py-class docutils literal notranslate"><span class="pre">linear_model.Ridge</span></code></a>,
and <a class="reference internal" href="../modules/generated/sklearn.linear_model.RidgeCV.html#sklearn.linear_model.RidgeCV" title="sklearn.linear_model.RidgeCV"><code class="xref py py-class docutils literal notranslate"><span class="pre">linear_model.RidgeCV</span></code></a> with ‘sag’ solver. <span class="raw-html"><span class="badge text-bg-danger">Fix</span></span> </p></li>
<li><p><a class="reference internal" href="../modules/generated/sklearn.linear_model.RidgeCV.html#sklearn.linear_model.RidgeCV" title="sklearn.linear_model.RidgeCV"><code class="xref py py-class docutils literal notranslate"><span class="pre">linear_model.RidgeCV</span></code></a> when using leave-one-out cross-validation
with sparse inputs. <span class="raw-html"><span class="badge text-bg-danger">Fix</span></span> </p></li>
</ul>
<p>Details are listed in the changelog below.</p>
<p>(While we are trying to better inform users by providing this information, we
cannot assure that this list is complete.)</p>
</section>
<section id="known-major-bugs">
<h3>Known Major Bugs<a class="headerlink" href="#known-major-bugs" title="Link to this heading">#</a></h3>
<ul class="simple">
<li><p>The default <code class="docutils literal notranslate"><span class="pre">max_iter</span></code> for <a class="reference internal" href="../modules/generated/sklearn.linear_model.LogisticRegression.html#sklearn.linear_model.LogisticRegression" title="sklearn.linear_model.LogisticRegression"><code class="xref py py-class docutils literal notranslate"><span class="pre">linear_model.LogisticRegression</span></code></a> is too
small for many solvers given the default <code class="docutils literal notranslate"><span class="pre">tol</span></code>. In particular, we
accidentally changed the default <code class="docutils literal notranslate"><span class="pre">max_iter</span></code> for the liblinear solver from
1000 to 100 iterations in <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/3591">#3591</a> released in version 0.16.
In a future release we hope to choose better default <code class="docutils literal notranslate"><span class="pre">max_iter</span></code> and <code class="docutils literal notranslate"><span class="pre">tol</span></code>
heuristically depending on the solver (see <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/13317">#13317</a>).</p></li>
</ul>
</section>
<section id="id7">
<h3>Changelog<a class="headerlink" href="#id7" title="Link to this heading">#</a></h3>
<p>Support for Python 3.4 and below has been officially dropped.</p>
<section id="sklearn-base">
<h4><a class="reference internal" href="../api/sklearn.base.html#module-sklearn.base" title="sklearn.base"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.base</span></code></a><a class="headerlink" href="#sklearn-base" title="Link to this heading">#</a></h4>
<ul class="simple">
<li><p><span class="raw-html"><span class="badge text-bg-warning">API Change</span></span> The R2 score used when calling <code class="docutils literal notranslate"><span class="pre">score</span></code> on a regressor will use
<code class="docutils literal notranslate"><span class="pre">multioutput='uniform_average'</span></code> from version 0.23 to keep consistent with
<a class="reference internal" href="../modules/generated/sklearn.metrics.r2_score.html#sklearn.metrics.r2_score" title="sklearn.metrics.r2_score"><code class="xref py py-func docutils literal notranslate"><span class="pre">metrics.r2_score</span></code></a>. This will influence the <code class="docutils literal notranslate"><span class="pre">score</span></code> method of all
the multioutput regressors (except for
<a class="reference internal" href="../modules/generated/sklearn.multioutput.MultiOutputRegressor.html#sklearn.multioutput.MultiOutputRegressor" title="sklearn.multioutput.MultiOutputRegressor"><code class="xref py py-class docutils literal notranslate"><span class="pre">multioutput.MultiOutputRegressor</span></code></a>).
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/13157">#13157</a> by <a class="reference external" href="https://github.com/qinhanmin2014">Hanmin Qin</a>.</p></li>
</ul>
</section>
<section id="sklearn-calibration">
<h4><a class="reference internal" href="../api/sklearn.calibration.html#module-sklearn.calibration" title="sklearn.calibration"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.calibration</span></code></a><a class="headerlink" href="#sklearn-calibration" title="Link to this heading">#</a></h4>
<ul class="simple">
<li><p><span class="raw-html"><span class="badge text-bg-info">Enhancement</span></span> Added support to bin the data passed into
<a class="reference internal" href="../modules/generated/sklearn.calibration.calibration_curve.html#sklearn.calibration.calibration_curve" title="sklearn.calibration.calibration_curve"><code class="xref py py-class docutils literal notranslate"><span class="pre">calibration.calibration_curve</span></code></a> by quantiles instead of uniformly
between 0 and 1.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/13086">#13086</a> by <a class="reference external" href="https://github.com/srcole">Scott Cole</a>.</p></li>
<li><p><span class="raw-html"><span class="badge text-bg-info">Enhancement</span></span> Allow n-dimensional arrays as input for
<code class="docutils literal notranslate"><span class="pre">calibration.CalibratedClassifierCV</span></code>. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/13485">#13485</a> by
<a class="reference external" href="https://github.com/wdevazelhes">William de Vazelhes</a>.</p></li>
</ul>
</section>
<section id="id8">
<h4><a class="reference internal" href="../api/sklearn.cluster.html#module-sklearn.cluster" title="sklearn.cluster"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.cluster</span></code></a><a class="headerlink" href="#id8" title="Link to this heading">#</a></h4>
<ul class="simple">
<li><p><span class="raw-html"><span class="badge text-bg-success">Major Feature</span></span> A new clustering algorithm: <a class="reference internal" href="../modules/generated/sklearn.cluster.OPTICS.html#sklearn.cluster.OPTICS" title="sklearn.cluster.OPTICS"><code class="xref py py-class docutils literal notranslate"><span class="pre">cluster.OPTICS</span></code></a>: an
algorithm related to <a class="reference internal" href="../modules/generated/sklearn.cluster.DBSCAN.html#sklearn.cluster.DBSCAN" title="sklearn.cluster.DBSCAN"><code class="xref py py-class docutils literal notranslate"><span class="pre">cluster.DBSCAN</span></code></a>, that has hyperparameters easier
to set and that scales better, by <a class="reference external" href="https://github.com/espg">Shane</a>,
<a class="reference external" href="https://github.com/adrinjalali">Adrin Jalali</a>, <a class="reference external" href="https://github.com/kno10">Erich Schubert</a>, <a class="reference external" href="https://github.com/qinhanmin2014">Hanmin Qin</a>, and
<a class="reference external" href="https://github.com/assiaben">Assia Benbihi</a>.</p></li>
<li><p><span class="raw-html"><span class="badge text-bg-danger">Fix</span></span> Fixed a bug where <a class="reference internal" href="../modules/generated/sklearn.cluster.Birch.html#sklearn.cluster.Birch" title="sklearn.cluster.Birch"><code class="xref py py-class docutils literal notranslate"><span class="pre">cluster.Birch</span></code></a> could occasionally raise an
AttributeError. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/13651">#13651</a> by <a class="reference external" href="https://joelnothman.com/">Joel Nothman</a>.</p></li>
<li><p><span class="raw-html"><span class="badge text-bg-danger">Fix</span></span> Fixed a bug in <a class="reference internal" href="../modules/generated/sklearn.cluster.KMeans.html#sklearn.cluster.KMeans" title="sklearn.cluster.KMeans"><code class="xref py py-class docutils literal notranslate"><span class="pre">cluster.KMeans</span></code></a> where empty clusters weren’t
correctly relocated when using sample weights. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/13486">#13486</a> by
<a class="reference external" href="https://github.com/jeremiedbb">Jérémie du Boisberranger</a>.</p></li>
<li><p><span class="raw-html"><span class="badge text-bg-warning">API Change</span></span> The <code class="docutils literal notranslate"><span class="pre">n_components_</span></code> attribute in <a class="reference internal" href="../modules/generated/sklearn.cluster.AgglomerativeClustering.html#sklearn.cluster.AgglomerativeClustering" title="sklearn.cluster.AgglomerativeClustering"><code class="xref py py-class docutils literal notranslate"><span class="pre">cluster.AgglomerativeClustering</span></code></a>
and <a class="reference internal" href="../modules/generated/sklearn.cluster.FeatureAgglomeration.html#sklearn.cluster.FeatureAgglomeration" title="sklearn.cluster.FeatureAgglomeration"><code class="xref py py-class docutils literal notranslate"><span class="pre">cluster.FeatureAgglomeration</span></code></a> has been renamed to
<code class="docutils literal notranslate"><span class="pre">n_connected_components_</span></code>.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/13427">#13427</a> by <a class="reference external" href="https://github.com/scouvreur">Stephane Couvreur</a>.</p></li>
<li><p><span class="raw-html"><span class="badge text-bg-info">Enhancement</span></span> <a class="reference internal" href="../modules/generated/sklearn.cluster.AgglomerativeClustering.html#sklearn.cluster.AgglomerativeClustering" title="sklearn.cluster.AgglomerativeClustering"><code class="xref py py-class docutils literal notranslate"><span class="pre">cluster.AgglomerativeClustering</span></code></a> and
<a class="reference internal" href="../modules/generated/sklearn.cluster.FeatureAgglomeration.html#sklearn.cluster.FeatureAgglomeration" title="sklearn.cluster.FeatureAgglomeration"><code class="xref py py-class docutils literal notranslate"><span class="pre">cluster.FeatureAgglomeration</span></code></a> now accept a <code class="docutils literal notranslate"><span class="pre">distance_threshold</span></code>
parameter which can be used to find the clusters instead of <code class="docutils literal notranslate"><span class="pre">n_clusters</span></code>.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/issues/9069">#9069</a> by <a class="reference external" href="https://github.com/VathsalaAchar">Vathsala Achar</a> and <a class="reference external" href="https://github.com/adrinjalali">Adrin Jalali</a>.</p></li>
</ul>
</section>
<section id="id9">
<h4><a class="reference internal" href="../api/sklearn.compose.html#module-sklearn.compose" title="sklearn.compose"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.compose</span></code></a><a class="headerlink" href="#id9" title="Link to this heading">#</a></h4>
<ul class="simple">
<li><p><span class="raw-html"><span class="badge text-bg-warning">API Change</span></span> <a class="reference internal" href="../modules/generated/sklearn.compose.ColumnTransformer.html#sklearn.compose.ColumnTransformer" title="sklearn.compose.ColumnTransformer"><code class="xref py py-class docutils literal notranslate"><span class="pre">compose.ColumnTransformer</span></code></a> is no longer an experimental
feature. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/13835">#13835</a> by <a class="reference external" href="https://github.com/qinhanmin2014">Hanmin Qin</a>.</p></li>
</ul>
</section>
<section id="id10">
<h4><a class="reference internal" href="../api/sklearn.datasets.html#module-sklearn.datasets" title="sklearn.datasets"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.datasets</span></code></a><a class="headerlink" href="#id10" title="Link to this heading">#</a></h4>
<ul class="simple">
<li><p><span class="raw-html"><span class="badge text-bg-danger">Fix</span></span> Added support for 64-bit group IDs and pointers in SVMLight files.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/10727">#10727</a> by <a class="reference external" href="https://github.com/bryan-woods">Bryan K Woods</a>.</p></li>
<li><p><span class="raw-html"><span class="badge text-bg-danger">Fix</span></span> <a class="reference internal" href="../modules/generated/sklearn.datasets.load_sample_images.html#sklearn.datasets.load_sample_images" title="sklearn.datasets.load_sample_images"><code class="xref py py-func docutils literal notranslate"><span class="pre">datasets.load_sample_images</span></code></a> returns images with a deterministic
order. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/13250">#13250</a> by <a class="reference external" href="https://github.com/thomasjpfan">Thomas Fan</a>.</p></li>
</ul>
</section>
<section id="id11">
<h4><a class="reference internal" href="../api/sklearn.decomposition.html#module-sklearn.decomposition" title="sklearn.decomposition"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.decomposition</span></code></a><a class="headerlink" href="#id11" title="Link to this heading">#</a></h4>
<ul class="simple">
<li><p><span class="raw-html"><span class="badge text-bg-info">Enhancement</span></span> <a class="reference internal" href="../modules/generated/sklearn.decomposition.KernelPCA.html#sklearn.decomposition.KernelPCA" title="sklearn.decomposition.KernelPCA"><code class="xref py py-class docutils literal notranslate"><span class="pre">decomposition.KernelPCA</span></code></a> now has deterministic output
(resolved sign ambiguity in eigenvalue decomposition of the kernel matrix).
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/13241">#13241</a> by <a class="reference external" href="https://github.com/bellet">Aurélien Bellet</a>.</p></li>
<li><p><span class="raw-html"><span class="badge text-bg-danger">Fix</span></span> Fixed a bug in <a class="reference internal" href="../modules/generated/sklearn.decomposition.KernelPCA.html#sklearn.decomposition.KernelPCA" title="sklearn.decomposition.KernelPCA"><code class="xref py py-class docutils literal notranslate"><span class="pre">decomposition.KernelPCA</span></code></a>, <code class="docutils literal notranslate"><span class="pre">fit().transform()</span></code>
now produces the correct output (the same as <code class="docutils literal notranslate"><span class="pre">fit_transform()</span></code>) in case
of non-removed zero eigenvalues (<code class="docutils literal notranslate"><span class="pre">remove_zero_eig=False</span></code>).
<code class="docutils literal notranslate"><span class="pre">fit_inverse_transform</span></code> was also accelerated by using the same trick as
<code class="docutils literal notranslate"><span class="pre">fit_transform</span></code> to compute the transform of <code class="docutils literal notranslate"><span class="pre">X</span></code>.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/12143">#12143</a> by <a class="reference external" href="https://github.com/smarie">Sylvain Marié</a></p></li>
<li><p><span class="raw-html"><span class="badge text-bg-danger">Fix</span></span> Fixed a bug in <a class="reference internal" href="../modules/generated/sklearn.decomposition.NMF.html#sklearn.decomposition.NMF" title="sklearn.decomposition.NMF"><code class="xref py py-class docutils literal notranslate"><span class="pre">decomposition.NMF</span></code></a> where <code class="docutils literal notranslate"><span class="pre">init</span> <span class="pre">=</span> <span class="pre">'nndsvd'</span></code>,
<code class="docutils literal notranslate"><span class="pre">init</span> <span class="pre">=</span> <span class="pre">'nndsvda'</span></code>, and <code class="docutils literal notranslate"><span class="pre">init</span> <span class="pre">=</span> <span class="pre">'nndsvdar'</span></code> are allowed when
<code class="docutils literal notranslate"><span class="pre">n_components</span> <span class="pre"><</span> <span class="pre">n_features</span></code> instead of
<code class="docutils literal notranslate"><span class="pre">n_components</span> <span class="pre"><=</span> <span class="pre">min(n_samples,</span> <span class="pre">n_features)</span></code>.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/11650">#11650</a> by <a class="reference external" href="https://github.com/hossein-pourbozorg">Hossein Pourbozorg</a> and
<a class="reference external" href="https://github.com/zjpoh">Zijie (ZJ) Poh</a>.</p></li>
<li><p><span class="raw-html"><span class="badge text-bg-warning">API Change</span></span> The default value of the <code class="code docutils literal notranslate"><span class="pre">init</span></code> argument in
<a class="reference internal" href="../modules/generated/sklearn.decomposition.non_negative_factorization.html#sklearn.decomposition.non_negative_factorization" title="sklearn.decomposition.non_negative_factorization"><code class="xref py py-func docutils literal notranslate"><span class="pre">decomposition.non_negative_factorization</span></code></a> will change from
<code class="code docutils literal notranslate"><span class="pre">random</span></code> to <code class="code docutils literal notranslate"><span class="pre">None</span></code> in version 0.23 to make it consistent with
<a class="reference internal" href="../modules/generated/sklearn.decomposition.NMF.html#sklearn.decomposition.NMF" title="sklearn.decomposition.NMF"><code class="xref py py-class docutils literal notranslate"><span class="pre">decomposition.NMF</span></code></a>. A FutureWarning is raised when
the default value is used.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/12988">#12988</a> by <a class="reference external" href="https://github.com/zjpoh">Zijie (ZJ) Poh</a>.</p></li>
</ul>
</section>
<section id="sklearn-discriminant-analysis">
<h4><a class="reference internal" href="../api/sklearn.discriminant_analysis.html#module-sklearn.discriminant_analysis" title="sklearn.discriminant_analysis"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.discriminant_analysis</span></code></a><a class="headerlink" href="#sklearn-discriminant-analysis" title="Link to this heading">#</a></h4>
<ul class="simple">
<li><p><span class="raw-html"><span class="badge text-bg-info">Enhancement</span></span> <a class="reference internal" href="../modules/generated/sklearn.discriminant_analysis.LinearDiscriminantAnalysis.html#sklearn.discriminant_analysis.LinearDiscriminantAnalysis" title="sklearn.discriminant_analysis.LinearDiscriminantAnalysis"><code class="xref py py-class docutils literal notranslate"><span class="pre">discriminant_analysis.LinearDiscriminantAnalysis</span></code></a> now
preserves <code class="docutils literal notranslate"><span class="pre">float32</span></code> and <code class="docutils literal notranslate"><span class="pre">float64</span></code> dtypes. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/8769">#8769</a> and
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/11000">#11000</a> by <a class="reference external" href="https://github.com/thibsej">Thibault Sejourne</a></p></li>
<li><p><span class="raw-html"><span class="badge text-bg-danger">Fix</span></span> A <code class="docutils literal notranslate"><span class="pre">ChangedBehaviourWarning</span></code> is now raised when
<a class="reference internal" href="../modules/generated/sklearn.discriminant_analysis.LinearDiscriminantAnalysis.html#sklearn.discriminant_analysis.LinearDiscriminantAnalysis" title="sklearn.discriminant_analysis.LinearDiscriminantAnalysis"><code class="xref py py-class docutils literal notranslate"><span class="pre">discriminant_analysis.LinearDiscriminantAnalysis</span></code></a> is given as
parameter <code class="docutils literal notranslate"><span class="pre">n_components</span> <span class="pre">></span> <span class="pre">min(n_features,</span> <span class="pre">n_classes</span> <span class="pre">-</span> <span class="pre">1)</span></code>, and
<code class="docutils literal notranslate"><span class="pre">n_components</span></code> is changed to <code class="docutils literal notranslate"><span class="pre">min(n_features,</span> <span class="pre">n_classes</span> <span class="pre">-</span> <span class="pre">1)</span></code> if so.
Previously the change was made, but silently. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/11526">#11526</a> by
<a class="reference external" href="https://github.com/wdevazelhes">William de Vazelhes</a>.</p></li>
<li><p><span class="raw-html"><span class="badge text-bg-danger">Fix</span></span> Fixed a bug in <a class="reference internal" href="../modules/generated/sklearn.discriminant_analysis.LinearDiscriminantAnalysis.html#sklearn.discriminant_analysis.LinearDiscriminantAnalysis" title="sklearn.discriminant_analysis.LinearDiscriminantAnalysis"><code class="xref py py-class docutils literal notranslate"><span class="pre">discriminant_analysis.LinearDiscriminantAnalysis</span></code></a>
where the predicted probabilities would be incorrectly computed in the
multiclass case. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/6848">#6848</a>, by <a class="reference external" href="https://github.com/agamemnonc">Agamemnon Krasoulis</a> and <code class="docutils literal notranslate"><span class="pre">Guillaume</span> <span class="pre">Lemaitre</span> <span class="pre"><glemaitre></span></code>.</p></li>
<li><p><span class="raw-html"><span class="badge text-bg-danger">Fix</span></span> Fixed a bug in <a class="reference internal" href="../modules/generated/sklearn.discriminant_analysis.LinearDiscriminantAnalysis.html#sklearn.discriminant_analysis.LinearDiscriminantAnalysis" title="sklearn.discriminant_analysis.LinearDiscriminantAnalysis"><code class="xref py py-class docutils literal notranslate"><span class="pre">discriminant_analysis.LinearDiscriminantAnalysis</span></code></a>
where the predicted probabilities would be incorrectly computed with <code class="docutils literal notranslate"><span class="pre">eigen</span></code>
solver. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/11727">#11727</a>, by <a class="reference external" href="https://github.com/agamemnonc">Agamemnon Krasoulis</a>.</p></li>
</ul>
</section>
<section id="sklearn-dummy">
<h4><a class="reference internal" href="../api/sklearn.dummy.html#module-sklearn.dummy" title="sklearn.dummy"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.dummy</span></code></a><a class="headerlink" href="#sklearn-dummy" title="Link to this heading">#</a></h4>
<ul class="simple">
<li><p><span class="raw-html"><span class="badge text-bg-danger">Fix</span></span> Fixed a bug in <a class="reference internal" href="../modules/generated/sklearn.dummy.DummyClassifier.html#sklearn.dummy.DummyClassifier" title="sklearn.dummy.DummyClassifier"><code class="xref py py-class docutils literal notranslate"><span class="pre">dummy.DummyClassifier</span></code></a> where the
<code class="docutils literal notranslate"><span class="pre">predict_proba</span></code> method was returning int32 array instead of