-
Notifications
You must be signed in to change notification settings - Fork 81
/
Copy pathv1.0.html
1578 lines (1539 loc) · 240 KB
/
v1.0.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>
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />
<meta property="og:title" content="Version 1.0.2" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://scikit-learn/stable/whats_new/v1.0.html" />
<meta property="og:site_name" content="scikit-learn" />
<meta property="og:description" content="In Development cluster.Birch, feature_selection.RFECV, ensemble.RandomForestRegressor, ensemble.RandomForestClassifier, ensemble.GradientBoostingRegressor, and ensemble.GradientBoostingClassifier d..." />
<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="In Development cluster.Birch, feature_selection.RFECV, ensemble.RandomForestRegressor, ensemble.RandomForestClassifier, ensemble.GradientBoostingRegressor, and ensemble.GradientBoostingClassifier d..." />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Version 1.0.2 — scikit-learn 1.3.dev0 documentation</title>
<link rel="canonical" href="http://scikit-learn.org/stable/whats_new/v1.0.html" />
<link rel="shortcut icon" href="../_static/favicon.ico"/>
<link rel="stylesheet" href="../_static/css/vendor/bootstrap.min.css" type="text/css" />
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
<link rel="stylesheet" href="../_static/plot_directive.css" type="text/css" />
<link rel="stylesheet" href="../_static/sg_gallery.css" type="text/css" />
<link rel="stylesheet" href="../_static/sg_gallery-binder.css" type="text/css" />
<link rel="stylesheet" href="../_static/sg_gallery-dataframe.css" type="text/css" />
<link rel="stylesheet" href="../_static/sg_gallery-rendered-html.css" type="text/css" />
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
<script id="documentation_options" data-url_root="../" src="../_static/documentation_options.js"></script>
<script src="../_static/js/vendor/jquery-3.6.3.slim.min.js"></script>
</head>
<body>
<nav id="navbar" class="sk-docs-navbar navbar navbar-expand-md navbar-light bg-light py-0">
<div class="container-fluid sk-docs-container px-0">
<a class="navbar-brand py-0" href="../index.html">
<img
class="sk-brand-img"
src="../_static/scikit-learn-logo-small.png"
alt="logo"/>
</a>
<button
id="sk-navbar-toggler"
class="navbar-toggler"
type="button"
data-toggle="collapse"
data-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span class="navbar-toggler-icon"></span>
</button>
<div class="sk-navbar-collapse collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item">
<a class="sk-nav-link nav-link" href="../install.html">Install</a>
</li>
<li class="nav-item">
<a class="sk-nav-link nav-link" href="../user_guide.html">User Guide</a>
</li>
<li class="nav-item">
<a class="sk-nav-link nav-link" href="../modules/classes.html">API</a>
</li>
<li class="nav-item">
<a class="sk-nav-link nav-link" href="../auto_examples/index.html">Examples</a>
</li>
<li class="nav-item">
<a class="sk-nav-link nav-link" target="_blank" rel="noopener noreferrer" href="https://blog.scikit-learn.org/">Community</a>
</li>
<li class="nav-item">
<a class="sk-nav-link nav-link nav-more-item-mobile-items" href="../getting_started.html" >Getting Started</a>
</li>
<li class="nav-item">
<a class="sk-nav-link nav-link nav-more-item-mobile-items" href="../tutorial/index.html" >Tutorial</a>
</li>
<li class="nav-item">
<a class="sk-nav-link nav-link nav-more-item-mobile-items" href="v1.3.html" >What's new</a>
</li>
<li class="nav-item">
<a class="sk-nav-link nav-link nav-more-item-mobile-items" href="../glossary.html" >Glossary</a>
</li>
<li class="nav-item">
<a class="sk-nav-link nav-link nav-more-item-mobile-items" href="../developers/index.html" >Development</a>
</li>
<li class="nav-item">
<a class="sk-nav-link nav-link nav-more-item-mobile-items" href="../faq.html" >FAQ</a>
</li>
<li class="nav-item">
<a class="sk-nav-link nav-link nav-more-item-mobile-items" href="../support.html" >Support</a>
</li>
<li class="nav-item">
<a class="sk-nav-link nav-link nav-more-item-mobile-items" href="../related_projects.html" >Related packages</a>
</li>
<li class="nav-item">
<a class="sk-nav-link nav-link nav-more-item-mobile-items" href="../roadmap.html" >Roadmap</a>
</li>
<li class="nav-item">
<a class="sk-nav-link nav-link nav-more-item-mobile-items" href="../governance.html" >Governance</a>
</li>
<li class="nav-item">
<a class="sk-nav-link nav-link nav-more-item-mobile-items" href="../about.html" >About us</a>
</li>
<li class="nav-item">
<a class="sk-nav-link nav-link nav-more-item-mobile-items" href="https://github.com/scikit-learn/scikit-learn" >GitHub</a>
</li>
<li class="nav-item">
<a class="sk-nav-link nav-link nav-more-item-mobile-items" href="https://scikit-learn.org/dev/versions.html" >Other Versions and Download</a>
</li>
<li class="nav-item dropdown nav-more-item-dropdown">
<a class="sk-nav-link nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">More</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="sk-nav-dropdown-item dropdown-item" href="../getting_started.html" >Getting Started</a>
<a class="sk-nav-dropdown-item dropdown-item" href="../tutorial/index.html" >Tutorial</a>
<a class="sk-nav-dropdown-item dropdown-item" href="v1.3.html" >What's new</a>
<a class="sk-nav-dropdown-item dropdown-item" href="../glossary.html" >Glossary</a>
<a class="sk-nav-dropdown-item dropdown-item" href="../developers/index.html" >Development</a>
<a class="sk-nav-dropdown-item dropdown-item" href="../faq.html" >FAQ</a>
<a class="sk-nav-dropdown-item dropdown-item" href="../support.html" >Support</a>
<a class="sk-nav-dropdown-item dropdown-item" href="../related_projects.html" >Related packages</a>
<a class="sk-nav-dropdown-item dropdown-item" href="../roadmap.html" >Roadmap</a>
<a class="sk-nav-dropdown-item dropdown-item" href="../governance.html" >Governance</a>
<a class="sk-nav-dropdown-item dropdown-item" href="../about.html" >About us</a>
<a class="sk-nav-dropdown-item dropdown-item" href="https://github.com/scikit-learn/scikit-learn" >GitHub</a>
<a class="sk-nav-dropdown-item dropdown-item" href="https://scikit-learn.org/dev/versions.html" >Other Versions and Download</a>
</div>
</li>
</ul>
<div id="searchbox" role="search">
<div class="searchformwrapper">
<form class="search" action="../search.html" method="get">
<input class="sk-search-text-input" type="text" name="q" aria-labelledby="searchlabel" />
<input class="sk-search-text-btn" type="submit" value="Go" />
</form>
</div>
</div>
</div>
</div>
</nav>
<div class="d-flex" id="sk-doc-wrapper">
<input type="checkbox" name="sk-toggle-checkbox" id="sk-toggle-checkbox">
<label id="sk-sidemenu-toggle" class="sk-btn-toggle-toc btn sk-btn-primary" for="sk-toggle-checkbox">Toggle Menu</label>
<div id="sk-sidebar-wrapper" class="border-right">
<div class="sk-sidebar-toc-wrapper">
<div class="sk-sidebar-toc-logo">
</div>
<div class="btn-group w-100 mb-2" role="group" aria-label="rellinks">
<a href="v1.1.html" role="button" class="btn sk-btn-rellink py-1" sk-rellink-tooltip="Version 1.1.3">Prev</a><a href="../whats_new.html" role="button" class="btn sk-btn-rellink py-1" sk-rellink-tooltip="Release History">Up</a>
<a href="v0.24.html" role="button" class="btn sk-btn-rellink py-1" sk-rellink-tooltip="Version 0.24.2">Next</a>
</div>
<div class="alert alert-danger p-1 mb-2" role="alert">
<p class="text-center mb-0">
<strong>scikit-learn 1.3.dev0</strong><br/>
<a href="http://scikit-learn.org/dev/versions.html">Other versions</a>
</p>
</div>
<div class="alert alert-warning p-1 mb-2" role="alert">
<p class="text-center mb-0">
Please <a class="font-weight-bold" href="../about.html#citing-scikit-learn"><string>cite us</string></a> if you use the software.
</p>
</div>
<div class="sk-sidebar-toc">
<ul>
<li><a class="reference internal" href="#">Version 1.0.2</a><ul>
<li><a class="reference internal" href="#changelog">Changelog</a><ul>
<li><a class="reference internal" href="#sklearn-cluster"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.cluster</span></code></a></li>
<li><a class="reference internal" href="#sklearn-datasets"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.datasets</span></code></a></li>
<li><a class="reference internal" href="#sklearn-decomposition"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.decomposition</span></code></a></li>
<li><a class="reference internal" href="#sklearn-ensemble"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.ensemble</span></code></a></li>
<li><a class="reference internal" href="#sklearn-feature-selection"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.feature_selection</span></code></a></li>
<li><a class="reference internal" href="#sklearn-impute"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.impute</span></code></a></li>
<li><a class="reference internal" href="#sklearn-linear-model"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.linear_model</span></code></a></li>
<li><a class="reference internal" href="#sklearn-manifold"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.manifold</span></code></a></li>
<li><a class="reference internal" href="#sklearn-metrics"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.metrics</span></code></a></li>
<li><a class="reference internal" href="#sklearn-multiclass"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.multiclass</span></code></a></li>
<li><a class="reference internal" href="#sklearn-neighbors"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.neighbors</span></code></a></li>
<li><a class="reference internal" href="#sklearn-preprocessing"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.preprocessing</span></code></a></li>
<li><a class="reference internal" href="#sklearn-tree"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.tree</span></code></a></li>
<li><a class="reference internal" href="#sklearn-utils"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.utils</span></code></a></li>
</ul>
</li>
</ul>
</li>
<li><a class="reference internal" href="#version-1-0-1">Version 1.0.1</a><ul>
<li><a class="reference internal" href="#id1">Changelog</a></li>
<li><a class="reference internal" href="#fixed-models">Fixed models</a><ul>
<li><a class="reference internal" href="#sklearn-calibration"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.calibration</span></code></a></li>
<li><a class="reference internal" href="#id2"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.cluster</span></code></a></li>
<li><a class="reference internal" href="#id3"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.ensemble</span></code></a></li>
<li><a class="reference internal" href="#sklearn-gaussian-process"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.gaussian_process</span></code></a></li>
<li><a class="reference internal" href="#sklearn-feature-extraction"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.feature_extraction</span></code></a></li>
<li><a class="reference internal" href="#id4"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.linear_model</span></code></a></li>
<li><a class="reference internal" href="#id5"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.neighbors</span></code></a></li>
<li><a class="reference internal" href="#sklearn-pipeline"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.pipeline</span></code></a></li>
<li><a class="reference internal" href="#sklearn-svm"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.svm</span></code></a></li>
<li><a class="reference internal" href="#id6"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.utils</span></code></a></li>
<li><a class="reference internal" href="#miscellaneous">Miscellaneous</a></li>
</ul>
</li>
</ul>
</li>
<li><a class="reference internal" href="#version-1-0-0">Version 1.0.0</a><ul>
<li><a class="reference internal" href="#legend-for-changelogs">Legend for changelogs</a></li>
<li><a class="reference internal" href="#minimal-dependencies">Minimal dependencies</a></li>
<li><a class="reference internal" href="#enforcing-keyword-only-arguments">Enforcing keyword-only arguments</a></li>
<li><a class="reference internal" href="#changed-models">Changed models</a></li>
<li><a class="reference internal" href="#id7">Changelog</a><ul>
<li><a class="reference internal" href="#sklearn-base"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.base</span></code></a></li>
<li><a class="reference internal" href="#id8"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.calibration</span></code></a></li>
<li><a class="reference internal" href="#id9"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.cluster</span></code></a></li>
<li><a class="reference internal" href="#sklearn-compose"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.compose</span></code></a></li>
<li><a class="reference internal" href="#sklearn-covariance"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.covariance</span></code></a></li>
<li><a class="reference internal" href="#id10"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.datasets</span></code></a></li>
<li><a class="reference internal" href="#id11"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.decomposition</span></code></a></li>
<li><a class="reference internal" href="#sklearn-dummy"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.dummy</span></code></a></li>
<li><a class="reference internal" href="#id12"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.ensemble</span></code></a></li>
<li><a class="reference internal" href="#id13"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.feature_extraction</span></code></a></li>
<li><a class="reference internal" href="#id14"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.feature_selection</span></code></a></li>
<li><a class="reference internal" href="#sklearn-inspection"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.inspection</span></code></a></li>
<li><a class="reference internal" href="#sklearn-kernel-approximation"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.kernel_approximation</span></code></a></li>
<li><a class="reference internal" href="#id15"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.linear_model</span></code></a></li>
<li><a class="reference internal" href="#id16"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.manifold</span></code></a></li>
<li><a class="reference internal" href="#id17"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.metrics</span></code></a></li>
<li><a class="reference internal" href="#sklearn-mixture"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.mixture</span></code></a></li>
<li><a class="reference internal" href="#sklearn-model-selection"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.model_selection</span></code></a></li>
<li><a class="reference internal" href="#sklearn-naive-bayes"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.naive_bayes</span></code></a></li>
<li><a class="reference internal" href="#id18"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.neighbors</span></code></a></li>
<li><a class="reference internal" href="#sklearn-neural-network"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.neural_network</span></code></a></li>
<li><a class="reference internal" href="#id19"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.pipeline</span></code></a></li>
<li><a class="reference internal" href="#id20"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.preprocessing</span></code></a></li>
<li><a class="reference internal" href="#id21"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.svm</span></code></a></li>
<li><a class="reference internal" href="#id22"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.tree</span></code></a></li>
<li><a class="reference internal" href="#id23"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.utils</span></code></a></li>
</ul>
</li>
<li><a class="reference internal" href="#code-and-documentation-contributors">Code and Documentation Contributors</a></li>
</ul>
</li>
</ul>
</div>
</div>
</div>
<div id="sk-page-content-wrapper">
<div class="sk-page-content container-fluid body px-md-3" role="main">
<section id="version-1-0-2">
<span id="changes-1-0-2"></span><h1>Version 1.0.2<a class="headerlink" href="#version-1-0-2" title="Permalink to this heading">¶</a></h1>
<p><strong>In Development</strong></p>
<ul class="simple">
<li><p><span class="raw-html"><span class="badge badge-danger">Fix</span></span> <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>,
<a class="reference internal" href="../modules/generated/sklearn.feature_selection.RFECV.html#sklearn.feature_selection.RFECV" title="sklearn.feature_selection.RFECV"><code class="xref py py-class docutils literal notranslate"><span class="pre">feature_selection.RFECV</span></code></a>, <a class="reference internal" href="../modules/generated/sklearn.ensemble.RandomForestRegressor.html#sklearn.ensemble.RandomForestRegressor" title="sklearn.ensemble.RandomForestRegressor"><code class="xref py py-class docutils literal notranslate"><span class="pre">ensemble.RandomForestRegressor</span></code></a>,
<a class="reference internal" href="../modules/generated/sklearn.ensemble.RandomForestClassifier.html#sklearn.ensemble.RandomForestClassifier" title="sklearn.ensemble.RandomForestClassifier"><code class="xref py py-class docutils literal notranslate"><span class="pre">ensemble.RandomForestClassifier</span></code></a>,
<a class="reference internal" href="../modules/generated/sklearn.ensemble.GradientBoostingRegressor.html#sklearn.ensemble.GradientBoostingRegressor" title="sklearn.ensemble.GradientBoostingRegressor"><code class="xref py py-class docutils literal notranslate"><span class="pre">ensemble.GradientBoostingRegressor</span></code></a>, and
<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> do not raise warning when fitted
on a pandas DataFrame anymore. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/21578">#21578</a> by <a class="reference external" href="https://github.com/thomasjpfan">Thomas Fan</a>.</p></li>
</ul>
<section id="changelog">
<h2>Changelog<a class="headerlink" href="#changelog" title="Permalink to this heading">¶</a></h2>
<section id="sklearn-cluster">
<h3><a class="reference internal" href="../modules/classes.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="Permalink to this heading">¶</a></h3>
<ul class="simple">
<li><p><span class="raw-html"><span class="badge badge-danger">Fix</span></span> Fixed an infinite loop in <a class="reference internal" href="../modules/generated/sklearn.cluster.SpectralClustering.html#sklearn.cluster.SpectralClustering" title="sklearn.cluster.SpectralClustering"><code class="xref py py-func docutils literal notranslate"><span class="pre">cluster.SpectralClustering</span></code></a> by
moving an iteration counter from try to except.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/21271">#21271</a> by <a class="reference external" href="https://github.com/martintb">Tyler Martin</a>.</p></li>
</ul>
</section>
<section id="sklearn-datasets">
<h3><a class="reference internal" href="../modules/classes.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="Permalink to this heading">¶</a></h3>
<ul class="simple">
<li><p><span class="raw-html"><span class="badge badge-danger">Fix</span></span> <a class="reference internal" href="../modules/generated/sklearn.datasets.fetch_openml.html#sklearn.datasets.fetch_openml" title="sklearn.datasets.fetch_openml"><code class="xref py py-func docutils literal notranslate"><span class="pre">datasets.fetch_openml</span></code></a> is now thread safe. Data is first
downloaded to a temporary subfolder and then renamed.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/21833">#21833</a> by <a class="reference external" href="https://github.com/siavrez">Siavash Rezazadeh</a>.</p></li>
</ul>
</section>
<section id="sklearn-decomposition">
<h3><a class="reference internal" href="../modules/classes.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="Permalink to this heading">¶</a></h3>
<ul class="simple">
<li><p><span class="raw-html"><span class="badge badge-danger">Fix</span></span> Fixed the constraint on the objective function of
<a class="reference internal" href="../modules/generated/sklearn.decomposition.DictionaryLearning.html#sklearn.decomposition.DictionaryLearning" title="sklearn.decomposition.DictionaryLearning"><code class="xref py py-class docutils literal notranslate"><span class="pre">decomposition.DictionaryLearning</span></code></a>,
<a class="reference internal" href="../modules/generated/sklearn.decomposition.MiniBatchDictionaryLearning.html#sklearn.decomposition.MiniBatchDictionaryLearning" title="sklearn.decomposition.MiniBatchDictionaryLearning"><code class="xref py py-class docutils literal notranslate"><span class="pre">decomposition.MiniBatchDictionaryLearning</span></code></a>, <a class="reference internal" href="../modules/generated/sklearn.decomposition.SparsePCA.html#sklearn.decomposition.SparsePCA" title="sklearn.decomposition.SparsePCA"><code class="xref py py-class docutils literal notranslate"><span class="pre">decomposition.SparsePCA</span></code></a>
and <a class="reference internal" href="../modules/generated/sklearn.decomposition.MiniBatchSparsePCA.html#sklearn.decomposition.MiniBatchSparsePCA" title="sklearn.decomposition.MiniBatchSparsePCA"><code class="xref py py-class docutils literal notranslate"><span class="pre">decomposition.MiniBatchSparsePCA</span></code></a> to be convex and match the referenced
article. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/19210">#19210</a> by <a class="reference external" href="https://github.com/jeremiedbb">Jérémie du Boisberranger</a>.</p></li>
</ul>
</section>
<section id="sklearn-ensemble">
<h3><a class="reference internal" href="../modules/classes.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="Permalink to this heading">¶</a></h3>
<ul class="simple">
<li><p><span class="raw-html"><span class="badge badge-danger">Fix</span></span> <a class="reference internal" href="../modules/generated/sklearn.ensemble.RandomForestClassifier.html#sklearn.ensemble.RandomForestClassifier" title="sklearn.ensemble.RandomForestClassifier"><code class="xref py py-class docutils literal notranslate"><span class="pre">ensemble.RandomForestClassifier</span></code></a>,
<a class="reference internal" href="../modules/generated/sklearn.ensemble.RandomForestRegressor.html#sklearn.ensemble.RandomForestRegressor" title="sklearn.ensemble.RandomForestRegressor"><code class="xref py py-class docutils literal notranslate"><span class="pre">ensemble.RandomForestRegressor</span></code></a>,
<a class="reference internal" href="../modules/generated/sklearn.ensemble.ExtraTreesClassifier.html#sklearn.ensemble.ExtraTreesClassifier" title="sklearn.ensemble.ExtraTreesClassifier"><code class="xref py py-class docutils literal notranslate"><span class="pre">ensemble.ExtraTreesClassifier</span></code></a>, <a class="reference internal" href="../modules/generated/sklearn.ensemble.ExtraTreesRegressor.html#sklearn.ensemble.ExtraTreesRegressor" title="sklearn.ensemble.ExtraTreesRegressor"><code class="xref py py-class docutils literal notranslate"><span class="pre">ensemble.ExtraTreesRegressor</span></code></a>,
and <a class="reference internal" href="../modules/generated/sklearn.ensemble.RandomTreesEmbedding.html#sklearn.ensemble.RandomTreesEmbedding" title="sklearn.ensemble.RandomTreesEmbedding"><code class="xref py py-class docutils literal notranslate"><span class="pre">ensemble.RandomTreesEmbedding</span></code></a> now raise a <code class="docutils literal notranslate"><span class="pre">ValueError</span></code> when
<code class="docutils literal notranslate"><span class="pre">bootstrap=False</span></code> and <code class="docutils literal notranslate"><span class="pre">max_samples</span></code> is not <code class="docutils literal notranslate"><span class="pre">None</span></code>.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/21295">#21295</a> <a class="reference external" href="https://github.com/PSSF23">Haoyin Xu</a>.</p></li>
<li><p><span class="raw-html"><span class="badge badge-danger">Fix</span></span> Solve a bug in <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> where the
exponential loss was computing the positive gradient instead of the
negative one.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/22050">#22050</a> by <a class="reference external" href="https://github.com/glemaitre">Guillaume Lemaitre</a>.</p></li>
</ul>
</section>
<section id="sklearn-feature-selection">
<h3><a class="reference internal" href="../modules/classes.html#module-sklearn.feature_selection" title="sklearn.feature_selection"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.feature_selection</span></code></a><a class="headerlink" href="#sklearn-feature-selection" title="Permalink to this heading">¶</a></h3>
<ul class="simple">
<li><p><span class="raw-html"><span class="badge badge-danger">Fix</span></span> Fixed <a class="reference internal" href="../modules/generated/sklearn.feature_selection.SelectFromModel.html#sklearn.feature_selection.SelectFromModel" title="sklearn.feature_selection.SelectFromModel"><code class="xref py py-class docutils literal notranslate"><span class="pre">feature_selection.SelectFromModel</span></code></a> by improving support
for base estimators that do not set <code class="docutils literal notranslate"><span class="pre">feature_names_in_</span></code>. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/21991">#21991</a> by
<a class="reference external" href="https://github.com/thomasjpfan">Thomas Fan</a>.</p></li>
</ul>
</section>
<section id="sklearn-impute">
<h3><a class="reference internal" href="../modules/classes.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="Permalink to this heading">¶</a></h3>
<ul class="simple">
<li><p><span class="raw-html"><span class="badge badge-danger">Fix</span></span> Fix a bug in <a class="reference internal" href="../modules/generated/sklearn.linear_model.RidgeClassifierCV.html#sklearn.linear_model.RidgeClassifierCV" title="sklearn.linear_model.RidgeClassifierCV"><code class="xref py py-class docutils literal notranslate"><span class="pre">linear_model.RidgeClassifierCV</span></code></a> where the method
<code class="docutils literal notranslate"><span class="pre">predict</span></code> was performing an <code class="docutils literal notranslate"><span class="pre">argmax</span></code> on the scores obtained from
<code class="docutils literal notranslate"><span class="pre">decision_function</span></code> instead of returning the multilabel indicator matrix.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/19869">#19869</a> by <a class="reference external" href="https://github.com/glemaitre">Guillaume Lemaitre</a>.</p></li>
</ul>
</section>
<section id="sklearn-linear-model">
<h3><a class="reference internal" href="../modules/classes.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="Permalink to this heading">¶</a></h3>
<ul class="simple">
<li><p><span class="raw-html"><span class="badge badge-danger">Fix</span></span> <a class="reference internal" href="../modules/generated/sklearn.linear_model.LassoLarsIC.html#sklearn.linear_model.LassoLarsIC" title="sklearn.linear_model.LassoLarsIC"><code class="xref py py-class docutils literal notranslate"><span class="pre">linear_model.LassoLarsIC</span></code></a> now correctly computes AIC
and BIC. An error is now raised when <code class="docutils literal notranslate"><span class="pre">n_features</span> <span class="pre">></span> <span class="pre">n_samples</span></code> and
when the noise variance is not provided.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/21481">#21481</a> by <a class="reference external" href="https://github.com/glemaitre">Guillaume Lemaitre</a> and
<a class="reference external" href="https://github.com/ababino">Andrés Babino</a>.</p></li>
</ul>
</section>
<section id="sklearn-manifold">
<h3><a class="reference internal" href="../modules/classes.html#module-sklearn.manifold" title="sklearn.manifold"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.manifold</span></code></a><a class="headerlink" href="#sklearn-manifold" title="Permalink to this heading">¶</a></h3>
<ul class="simple">
<li><p><span class="raw-html"><span class="badge badge-danger">Fix</span></span> Fixed an unnecessary error when fitting <a class="reference internal" href="../modules/generated/sklearn.manifold.Isomap.html#sklearn.manifold.Isomap" title="sklearn.manifold.Isomap"><code class="xref py py-class docutils literal notranslate"><span class="pre">manifold.Isomap</span></code></a> with a
precomputed dense distance matrix where the neighbors graph has multiple
disconnected components. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/21915">#21915</a> by <a class="reference external" href="https://github.com/TomDLT">Tom Dupre la Tour</a>.</p></li>
</ul>
</section>
<section id="sklearn-metrics">
<h3><a class="reference internal" href="../modules/classes.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="Permalink to this heading">¶</a></h3>
<ul class="simple">
<li><p><span class="raw-html"><span class="badge badge-danger">Fix</span></span> All <a class="reference internal" href="../modules/generated/sklearn.metrics.DistanceMetric.html#sklearn.metrics.DistanceMetric" title="sklearn.metrics.DistanceMetric"><code class="xref py py-class docutils literal notranslate"><span class="pre">sklearn.metrics.DistanceMetric</span></code></a> subclasses now correctly support
read-only buffer attributes.
This fixes a regression introduced in 1.0.0 with respect to 0.24.2.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/21694">#21694</a> by <a class="reference external" href="https://github.com/jjerphan">Julien Jerphanion</a>.</p></li>
<li><p><span class="raw-html"><span class="badge badge-danger">Fix</span></span> All <code class="xref py py-class docutils literal notranslate"><span class="pre">sklearn.metrics.MinkowskiDistance</span></code> now accepts a weight
parameter that makes it possible to write code that behaves consistently both
with scipy 1.8 and earlier versions. In turns this means that all
neighbors-based estimators (except those that use <code class="docutils literal notranslate"><span class="pre">algorithm="kd_tree"</span></code>) now
accept a weight parameter with <code class="docutils literal notranslate"><span class="pre">metric="minknowski"</span></code> to yield results that
are always consistent with <code class="docutils literal notranslate"><span class="pre">scipy.spatial.distance.cdist</span></code>.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/21741">#21741</a> by <a class="reference external" href="https://github.com/ogrisel">Olivier Grisel</a>.</p></li>
</ul>
</section>
<section id="sklearn-multiclass">
<h3><a class="reference internal" href="../modules/classes.html#module-sklearn.multiclass" title="sklearn.multiclass"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.multiclass</span></code></a><a class="headerlink" href="#sklearn-multiclass" title="Permalink to this heading">¶</a></h3>
<ul class="simple">
<li><p><span class="raw-html"><span class="badge badge-danger">Fix</span></span> <a class="reference internal" href="../modules/generated/sklearn.multiclass.OneVsRestClassifier.html#sklearn.multiclass.OneVsRestClassifier.predict_proba" title="sklearn.multiclass.OneVsRestClassifier.predict_proba"><code class="xref py py-meth docutils literal notranslate"><span class="pre">multiclass.OneVsRestClassifier.predict_proba</span></code></a> does not error when
fitted on constant integer targets. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/21871">#21871</a> by <a class="reference external" href="https://github.com/thomasjpfan">Thomas Fan</a>.</p></li>
</ul>
</section>
<section id="sklearn-neighbors">
<h3><a class="reference internal" href="../modules/classes.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="Permalink to this heading">¶</a></h3>
<ul class="simple">
<li><p><span class="raw-html"><span class="badge badge-danger">Fix</span></span> <a class="reference internal" href="../modules/generated/sklearn.neighbors.KDTree.html#sklearn.neighbors.KDTree" title="sklearn.neighbors.KDTree"><code class="xref py py-class docutils literal notranslate"><span class="pre">neighbors.KDTree</span></code></a> and <a class="reference internal" href="../modules/generated/sklearn.neighbors.BallTree.html#sklearn.neighbors.BallTree" title="sklearn.neighbors.BallTree"><code class="xref py py-class docutils literal notranslate"><span class="pre">neighbors.BallTree</span></code></a> correctly supports
read-only buffer attributes. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/21845">#21845</a> by <a class="reference external" href="https://github.com/thomasjpfan">Thomas Fan</a>.</p></li>
</ul>
</section>
<section id="sklearn-preprocessing">
<h3><a class="reference internal" href="../modules/classes.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="Permalink to this heading">¶</a></h3>
<ul class="simple">
<li><p><span class="raw-html"><span class="badge badge-danger">Fix</span></span> Fixes compatibility bug with NumPy 1.22 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>.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/21517">#21517</a> by <a class="reference external" href="https://github.com/thomasjpfan">Thomas Fan</a>.</p></li>
</ul>
</section>
<section id="sklearn-tree">
<h3><a class="reference internal" href="../modules/classes.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="Permalink to this heading">¶</a></h3>
<ul class="simple">
<li><p><span class="raw-html"><span class="badge badge-danger">Fix</span></span> Prevents <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> from drawing out of the boundary of
the figure. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/21917">#21917</a> by <a class="reference external" href="https://github.com/thomasjpfan">Thomas Fan</a>.</p></li>
<li><p><span class="raw-html"><span class="badge badge-danger">Fix</span></span> Support loading pickles of decision tree models when the pickle has
been generated on a platform with a different bitness. A typical example is
to train and pickle the model on 64 bit machine and load the model on a 32
bit machine for prediction. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/21552">#21552</a> by <a class="reference external" href="https://github.com/lesteve">Loïc Estève</a>.</p></li>
</ul>
</section>
<section id="sklearn-utils">
<h3><a class="reference internal" href="../modules/classes.html#module-sklearn.utils" title="sklearn.utils"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.utils</span></code></a><a class="headerlink" href="#sklearn-utils" title="Permalink to this heading">¶</a></h3>
<ul class="simple">
<li><p><span class="raw-html"><span class="badge badge-danger">Fix</span></span> <a class="reference internal" href="../modules/generated/sklearn.utils.estimator_html_repr.html#sklearn.utils.estimator_html_repr" title="sklearn.utils.estimator_html_repr"><code class="xref py py-func docutils literal notranslate"><span class="pre">utils.estimator_html_repr</span></code></a> now escapes all the estimator
descriptions in the generated HTML. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/21493">#21493</a> by
<a class="reference external" href="https://github.com/ageron">Aurélien Geron</a>.</p></li>
</ul>
</section>
</section>
</section>
<section id="version-1-0-1">
<span id="changes-1-0-1"></span><h1>Version 1.0.1<a class="headerlink" href="#version-1-0-1" title="Permalink to this heading">¶</a></h1>
<p><strong>October 2021</strong></p>
<section id="id1">
<h2>Changelog<a class="headerlink" href="#id1" title="Permalink to this heading">¶</a></h2>
</section>
<section id="fixed-models">
<h2>Fixed models<a class="headerlink" href="#fixed-models" title="Permalink to this heading">¶</a></h2>
<ul class="simple">
<li><p><span class="raw-html"><span class="badge badge-danger">Fix</span></span> Non-fit methods in the following classes do not raise a UserWarning
when fitted on DataFrames with valid feature names:
<a class="reference internal" href="../modules/generated/sklearn.covariance.EllipticEnvelope.html#sklearn.covariance.EllipticEnvelope" title="sklearn.covariance.EllipticEnvelope"><code class="xref py py-class docutils literal notranslate"><span class="pre">covariance.EllipticEnvelope</span></code></a>, <a class="reference internal" href="../modules/generated/sklearn.ensemble.IsolationForest.html#sklearn.ensemble.IsolationForest" title="sklearn.ensemble.IsolationForest"><code class="xref py py-class docutils literal notranslate"><span class="pre">ensemble.IsolationForest</span></code></a>,
<a class="reference internal" href="../modules/generated/sklearn.ensemble.AdaBoostClassifier.html#sklearn.ensemble.AdaBoostClassifier" title="sklearn.ensemble.AdaBoostClassifier"><code class="xref py py-class docutils literal notranslate"><span class="pre">ensemble.AdaBoostClassifier</span></code></a>, <a class="reference internal" href="../modules/generated/sklearn.neighbors.KNeighborsClassifier.html#sklearn.neighbors.KNeighborsClassifier" title="sklearn.neighbors.KNeighborsClassifier"><code class="xref py py-class docutils literal notranslate"><span class="pre">neighbors.KNeighborsClassifier</span></code></a>,
<a class="reference internal" href="../modules/generated/sklearn.neighbors.KNeighborsRegressor.html#sklearn.neighbors.KNeighborsRegressor" title="sklearn.neighbors.KNeighborsRegressor"><code class="xref py py-class docutils literal notranslate"><span class="pre">neighbors.KNeighborsRegressor</span></code></a>,
<a class="reference internal" href="../modules/generated/sklearn.neighbors.RadiusNeighborsClassifier.html#sklearn.neighbors.RadiusNeighborsClassifier" title="sklearn.neighbors.RadiusNeighborsClassifier"><code class="xref py py-class docutils literal notranslate"><span class="pre">neighbors.RadiusNeighborsClassifier</span></code></a>,
<a class="reference internal" href="../modules/generated/sklearn.neighbors.RadiusNeighborsRegressor.html#sklearn.neighbors.RadiusNeighborsRegressor" title="sklearn.neighbors.RadiusNeighborsRegressor"><code class="xref py py-class docutils literal notranslate"><span class="pre">neighbors.RadiusNeighborsRegressor</span></code></a>. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/21199">#21199</a> by <a class="reference external" href="https://github.com/thomasjpfan">Thomas Fan</a>.</p></li>
</ul>
<section id="sklearn-calibration">
<h3><a class="reference internal" href="../modules/classes.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="Permalink to this heading">¶</a></h3>
<ul class="simple">
<li><p><span class="raw-html"><span class="badge badge-danger">Fix</span></span> Fixed <a class="reference internal" href="../modules/generated/sklearn.calibration.CalibratedClassifierCV.html#sklearn.calibration.CalibratedClassifierCV" title="sklearn.calibration.CalibratedClassifierCV"><code class="xref py py-class docutils literal notranslate"><span class="pre">calibration.CalibratedClassifierCV</span></code></a> to take into account
<code class="docutils literal notranslate"><span class="pre">sample_weight</span></code> when computing the base estimator prediction when
<code class="docutils literal notranslate"><span class="pre">ensemble=False</span></code>.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/20638">#20638</a> by <a class="reference external" href="https://github.com/JulienB-78">Julien Bohné</a>.</p></li>
<li><p><span class="raw-html"><span class="badge badge-danger">Fix</span></span> Fixed a bug in <a class="reference internal" href="../modules/generated/sklearn.calibration.CalibratedClassifierCV.html#sklearn.calibration.CalibratedClassifierCV" title="sklearn.calibration.CalibratedClassifierCV"><code class="xref py py-class docutils literal notranslate"><span class="pre">calibration.CalibratedClassifierCV</span></code></a> with
<code class="docutils literal notranslate"><span class="pre">method="sigmoid"</span></code> that was ignoring the <code class="docutils literal notranslate"><span class="pre">sample_weight</span></code> when computing the
the Bayesian priors.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/21179">#21179</a> by <a class="reference external" href="https://github.com/glemaitre">Guillaume Lemaitre</a>.</p></li>
</ul>
</section>
<section id="id2">
<h3><a class="reference internal" href="../modules/classes.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="#id2" title="Permalink to this heading">¶</a></h3>
<ul class="simple">
<li><p><span class="raw-html"><span class="badge badge-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>, ensuring reproducibility and equivalence
between sparse and dense input. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/21195">#21195</a>
by <a class="reference external" href="https://github.com/jeremiedbb">Jérémie du Boisberranger</a>.</p></li>
</ul>
</section>
<section id="id3">
<h3><a class="reference internal" href="../modules/classes.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="#id3" title="Permalink to this heading">¶</a></h3>
<ul class="simple">
<li><p><span class="raw-html"><span class="badge badge-danger">Fix</span></span> Fixed a bug that could produce a segfault in rare cases for
<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/21130">#21130</a> <a class="reference external" href="https://github.com/lorentzenchr">Christian Lorentzen</a>.</p></li>
</ul>
</section>
<section id="sklearn-gaussian-process">
<h3><a class="reference internal" href="../modules/classes.html#module-sklearn.gaussian_process" title="sklearn.gaussian_process"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.gaussian_process</span></code></a><a class="headerlink" href="#sklearn-gaussian-process" title="Permalink to this heading">¶</a></h3>
<ul class="simple">
<li><p><span class="raw-html"><span class="badge badge-danger">Fix</span></span> Compute <code class="docutils literal notranslate"><span class="pre">y_std</span></code> properly with multi-target in
<a class="reference internal" href="../modules/generated/sklearn.gaussian_process.GaussianProcessRegressor.html#sklearn.gaussian_process.GaussianProcessRegressor" title="sklearn.gaussian_process.GaussianProcessRegressor"><code class="xref py py-class docutils literal notranslate"><span class="pre">sklearn.gaussian_process.GaussianProcessRegressor</span></code></a> allowing
proper normalization in multi-target scene.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/20761">#20761</a> by <a class="reference external" href="https://github.com/patrickctrf">Patrick de C. T. R. Ferreira</a>.</p></li>
</ul>
</section>
<section id="sklearn-feature-extraction">
<h3><a class="reference internal" href="../modules/classes.html#module-sklearn.feature_extraction" title="sklearn.feature_extraction"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.feature_extraction</span></code></a><a class="headerlink" href="#sklearn-feature-extraction" title="Permalink to this heading">¶</a></h3>
<ul class="simple">
<li><p><span class="raw-html"><span class="badge badge-info">Efficiency</span></span> Fixed an efficiency regression introduced in version 1.0.0 in the
<code class="docutils literal notranslate"><span class="pre">transform</span></code> method of <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">feature_extraction.text.CountVectorizer</span></code></a> which no
longer checks for uppercase characters in the provided vocabulary. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/21251">#21251</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 badge-danger">Fix</span></span> Fixed a bug in <code class="xref py py-class docutils literal notranslate"><span class="pre">feature_extraction.CountVectorizer</span></code> and
<code class="xref py py-class docutils literal notranslate"><span class="pre">feature_extraction.TfidfVectorizer</span></code> by raising an
error when ‘min_idf’ or ‘max_idf’ are floating-point numbers greater than 1.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/20752">#20752</a> by <a class="reference external" href="https://github.com/AlekLefebvre">Alek Lefebvre</a>.</p></li>
</ul>
</section>
<section id="id4">
<h3><a class="reference internal" href="../modules/classes.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="#id4" title="Permalink to this heading">¶</a></h3>
<ul class="simple">
<li><p><span class="raw-html"><span class="badge badge-danger">Fix</span></span> Improves stability of <a class="reference internal" href="../modules/generated/sklearn.linear_model.LassoLars.html#sklearn.linear_model.LassoLars" title="sklearn.linear_model.LassoLars"><code class="xref py py-class docutils literal notranslate"><span class="pre">linear_model.LassoLars</span></code></a> for different
versions of openblas. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/21340">#21340</a> by <a class="reference external" href="https://github.com/thomasjpfan">Thomas Fan</a>.</p></li>
<li><p><span class="raw-html"><span class="badge badge-danger">Fix</span></span> <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> now raises a better error
message when the solver does not support sparse matrices with int64 indices.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/21093">#21093</a> by <a class="reference external" href="https://github.com/TomDLT">Tom Dupre la Tour</a>.</p></li>
</ul>
</section>
<section id="id5">
<h3><a class="reference internal" href="../modules/classes.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="Permalink to this heading">¶</a></h3>
<ul class="simple">
<li><p><span class="raw-html"><span class="badge badge-danger">Fix</span></span> <a class="reference internal" href="../modules/generated/sklearn.neighbors.KNeighborsClassifier.html#sklearn.neighbors.KNeighborsClassifier" title="sklearn.neighbors.KNeighborsClassifier"><code class="xref py py-class docutils literal notranslate"><span class="pre">neighbors.KNeighborsClassifier</span></code></a>,
<a class="reference internal" href="../modules/generated/sklearn.neighbors.KNeighborsRegressor.html#sklearn.neighbors.KNeighborsRegressor" title="sklearn.neighbors.KNeighborsRegressor"><code class="xref py py-class docutils literal notranslate"><span class="pre">neighbors.KNeighborsRegressor</span></code></a>,
<a class="reference internal" href="../modules/generated/sklearn.neighbors.RadiusNeighborsClassifier.html#sklearn.neighbors.RadiusNeighborsClassifier" title="sklearn.neighbors.RadiusNeighborsClassifier"><code class="xref py py-class docutils literal notranslate"><span class="pre">neighbors.RadiusNeighborsClassifier</span></code></a>,
<a class="reference internal" href="../modules/generated/sklearn.neighbors.RadiusNeighborsRegressor.html#sklearn.neighbors.RadiusNeighborsRegressor" title="sklearn.neighbors.RadiusNeighborsRegressor"><code class="xref py py-class docutils literal notranslate"><span class="pre">neighbors.RadiusNeighborsRegressor</span></code></a> with <code class="docutils literal notranslate"><span class="pre">metric="precomputed"</span></code> raises
an error for <code class="docutils literal notranslate"><span class="pre">bsr</span></code> and <code class="docutils literal notranslate"><span class="pre">dok</span></code> sparse matrices in methods: <code class="docutils literal notranslate"><span class="pre">fit</span></code>, <code class="docutils literal notranslate"><span class="pre">kneighbors</span></code>
and <code class="docutils literal notranslate"><span class="pre">radius_neighbors</span></code>, due to handling of explicit zeros in <code class="docutils literal notranslate"><span class="pre">bsr</span></code> and <code class="docutils literal notranslate"><span class="pre">dok</span></code>
<a class="reference internal" href="../glossary.html#term-sparse-graph"><span class="xref std std-term">sparse graph</span></a> formats. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/21199">#21199</a> by <a class="reference external" href="https://github.com/thomasjpfan">Thomas Fan</a>.</p></li>
</ul>
</section>
<section id="sklearn-pipeline">
<h3><a class="reference internal" href="../modules/classes.html#module-sklearn.pipeline" title="sklearn.pipeline"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.pipeline</span></code></a><a class="headerlink" href="#sklearn-pipeline" title="Permalink to this heading">¶</a></h3>
<ul class="simple">
<li><p><span class="raw-html"><span class="badge badge-danger">Fix</span></span> <a class="reference internal" href="../modules/generated/sklearn.pipeline.Pipeline.html#sklearn.pipeline.Pipeline.get_feature_names_out" title="sklearn.pipeline.Pipeline.get_feature_names_out"><code class="xref py py-meth docutils literal notranslate"><span class="pre">pipeline.Pipeline.get_feature_names_out</span></code></a> correctly passes feature
names out from one step of a pipeline to the next. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/21351">#21351</a> by
<a class="reference external" href="https://github.com/thomasjpfan">Thomas Fan</a>.</p></li>
</ul>
</section>
<section id="sklearn-svm">
<h3><a class="reference internal" href="../modules/classes.html#module-sklearn.svm" title="sklearn.svm"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.svm</span></code></a><a class="headerlink" href="#sklearn-svm" title="Permalink to this heading">¶</a></h3>
<ul class="simple">
<li><p><span class="raw-html"><span class="badge badge-danger">Fix</span></span> <a class="reference internal" href="../modules/generated/sklearn.svm.SVC.html#sklearn.svm.SVC" title="sklearn.svm.SVC"><code class="xref py py-class docutils literal notranslate"><span class="pre">svm.SVC</span></code></a> and <a class="reference internal" href="../modules/generated/sklearn.svm.SVR.html#sklearn.svm.SVR" title="sklearn.svm.SVR"><code class="xref py py-class docutils literal notranslate"><span class="pre">svm.SVR</span></code></a> check for an inconsistency
in its internal representation and raise an error instead of segfaulting.
This fix also resolves
<a class="reference external" href="https://nvd.nist.gov/vuln/detail/CVE-2020-28975">CVE-2020-28975</a>.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/21336">#21336</a> by <a class="reference external" href="https://github.com/thomasjpfan">Thomas Fan</a>.</p></li>
</ul>
</section>
<section id="id6">
<h3><a class="reference internal" href="../modules/classes.html#module-sklearn.utils" title="sklearn.utils"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.utils</span></code></a><a class="headerlink" href="#id6" title="Permalink to this heading">¶</a></h3>
<ul class="simple">
<li><p><span class="raw-html"><span class="badge badge-info">Enhancement</span></span> <code class="xref py py-func docutils literal notranslate"><span class="pre">utils.validation._check_sample_weight</span></code> can perform a
non-negativity check on the sample weights. It can be turned on
using the only_non_negative bool parameter.
Estimators that check for non-negative weights are updated:
<a class="reference internal" href="../modules/generated/sklearn.linear_model.LinearRegression.html#sklearn.linear_model.LinearRegression" title="sklearn.linear_model.LinearRegression"><code class="xref py py-func docutils literal notranslate"><span class="pre">linear_model.LinearRegression</span></code></a> (here the previous
error message was misleading),
<a class="reference internal" href="../modules/generated/sklearn.ensemble.AdaBoostClassifier.html#sklearn.ensemble.AdaBoostClassifier" title="sklearn.ensemble.AdaBoostClassifier"><code class="xref py py-func docutils literal notranslate"><span class="pre">ensemble.AdaBoostClassifier</span></code></a>,
<a class="reference internal" href="../modules/generated/sklearn.ensemble.AdaBoostRegressor.html#sklearn.ensemble.AdaBoostRegressor" title="sklearn.ensemble.AdaBoostRegressor"><code class="xref py py-func docutils literal notranslate"><span class="pre">ensemble.AdaBoostRegressor</span></code></a>,
<a class="reference internal" href="../modules/generated/sklearn.neighbors.KernelDensity.html#sklearn.neighbors.KernelDensity" title="sklearn.neighbors.KernelDensity"><code class="xref py py-func docutils literal notranslate"><span class="pre">neighbors.KernelDensity</span></code></a>.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/20880">#20880</a> by <a class="reference external" href="https://github.com/glemaitre">Guillaume Lemaitre</a>
and <a class="reference external" href="https://github.com/simonandras">András Simon</a>.</p></li>
<li><p><span class="raw-html"><span class="badge badge-danger">Fix</span></span> Solve a bug in <a class="reference internal" href="../modules/generated/sklearn.utils.metaestimators.if_delegate_has_method.html#sklearn.utils.metaestimators.if_delegate_has_method" title="sklearn.utils.metaestimators.if_delegate_has_method"><code class="xref py py-func docutils literal notranslate"><span class="pre">if_delegate_has_method</span></code></a>
where the underlying check for an attribute did not work with NumPy arrays.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/21145">#21145</a> by <a class="reference external" href="https://github.com/Zahlii">Zahlii</a>.</p></li>
</ul>
</section>
<section id="miscellaneous">
<h3>Miscellaneous<a class="headerlink" href="#miscellaneous" title="Permalink to this heading">¶</a></h3>
<ul class="simple">
<li><p><span class="raw-html"><span class="badge badge-danger">Fix</span></span> Fitting an estimator on a dataset that has no feature names, that was previously
fitted on a dataset with feature names no longer keeps the old feature names stored in
the <code class="docutils literal notranslate"><span class="pre">feature_names_in_</span></code> attribute. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/21389">#21389</a> by
<a class="reference external" href="https://github.com/jeremiedbb">Jérémie du Boisberranger</a>.</p></li>
</ul>
</section>
</section>
</section>
<section id="version-1-0-0">
<span id="changes-1-0"></span><h1>Version 1.0.0<a class="headerlink" href="#version-1-0-0" title="Permalink to this heading">¶</a></h1>
<p><strong>September 2021</strong></p>
<p>For a short description of the main highlights of the release, please
refer to
<a class="reference internal" href="../auto_examples/release_highlights/plot_release_highlights_1_0_0.html#sphx-glr-auto-examples-release-highlights-plot-release-highlights-1-0-0-py"><span class="std std-ref">Release Highlights for scikit-learn 1.0</span></a>.</p>
<section id="legend-for-changelogs">
<h2>Legend for changelogs<a class="headerlink" href="#legend-for-changelogs" title="Permalink to this heading">¶</a></h2>
<ul class="simple">
<li><p><span class="raw-html"><span class="badge badge-success">Major Feature</span></span> : something big that you couldn’t do before.</p></li>
<li><p><span class="raw-html"><span class="badge badge-success">Feature</span></span> : something that you couldn’t do before.</p></li>
<li><p><span class="raw-html"><span class="badge badge-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 badge-info">Enhancement</span></span> : a miscellaneous minor improvement.</p></li>
<li><p><span class="raw-html"><span class="badge badge-danger">Fix</span></span> : something that previously didn’t work as documentated – or according
to reasonable expectations – should now work.</p></li>
<li><p><span class="raw-html"><span class="badge badge-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>
<section id="minimal-dependencies">
<h2>Minimal dependencies<a class="headerlink" href="#minimal-dependencies" title="Permalink to this heading">¶</a></h2>
<p>Version 1.0.0 of scikit-learn requires python 3.7+, numpy 1.14.6+ and
scipy 1.1.0+. Optional minimal dependency is matplotlib 2.2.2+.</p>
</section>
<section id="enforcing-keyword-only-arguments">
<h2>Enforcing keyword-only arguments<a class="headerlink" href="#enforcing-keyword-only-arguments" title="Permalink to this heading">¶</a></h2>
<p>In an effort to promote clear and non-ambiguous use of the library, most
constructor and function parameters must now be passed as keyword arguments
(i.e. using the <code class="docutils literal notranslate"><span class="pre">param=value</span></code> syntax) instead of positional. If a keyword-only
parameter is used as positional, a <code class="docutils literal notranslate"><span class="pre">TypeError</span></code> is now raised.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/issues/15005">#15005</a> <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/20002">#20002</a> by <a class="reference external" href="https://joelnothman.com/">Joel Nothman</a>, <a class="reference external" href="https://github.com/adrinjalali">Adrin Jalali</a>, <a class="reference external" href="https://github.com/thomasjpfan">Thomas Fan</a>,
<a class="reference external" href="https://github.com/NicolasHug">Nicolas Hug</a>, and <a class="reference external" href="https://github.com/TomDLT">Tom Dupre la Tour</a>. See <a class="reference external" href="https://scikit-learn-enhancement-proposals.readthedocs.io/en/latest/slep009/proposal.html">SLEP009</a>
for more details.</p>
</section>
<section id="changed-models">
<h2>Changed models<a class="headerlink" href="#changed-models" title="Permalink to this heading">¶</a></h2>
<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><span class="raw-html"><span class="badge badge-danger">Fix</span></span> <a class="reference internal" href="../modules/generated/sklearn.manifold.TSNE.html#sklearn.manifold.TSNE" title="sklearn.manifold.TSNE"><code class="xref py py-class docutils literal notranslate"><span class="pre">manifold.TSNE</span></code></a> now avoids numerical underflow issues during
affinity matrix computation.</p></li>
<li><p><span class="raw-html"><span class="badge badge-danger">Fix</span></span> <a class="reference internal" href="../modules/generated/sklearn.manifold.Isomap.html#sklearn.manifold.Isomap" title="sklearn.manifold.Isomap"><code class="xref py py-class docutils literal notranslate"><span class="pre">manifold.Isomap</span></code></a> now connects disconnected components of the
neighbors graph along some minimum distance pairs, instead of changing
every infinite distances to zero.</p></li>
<li><p><span class="raw-html"><span class="badge badge-danger">Fix</span></span> The splitting criterion of <a class="reference internal" href="../modules/generated/sklearn.tree.DecisionTreeClassifier.html#sklearn.tree.DecisionTreeClassifier" title="sklearn.tree.DecisionTreeClassifier"><code class="xref py py-class docutils literal notranslate"><span class="pre">tree.DecisionTreeClassifier</span></code></a> and
<a class="reference internal" href="../modules/generated/sklearn.tree.DecisionTreeRegressor.html#sklearn.tree.DecisionTreeRegressor" title="sklearn.tree.DecisionTreeRegressor"><code class="xref py py-class docutils literal notranslate"><span class="pre">tree.DecisionTreeRegressor</span></code></a> can be impacted by a fix in the handling
of rounding errors. Previously some extra spurious splits could occur.</p></li>
<li><p><span class="raw-html"><span class="badge badge-danger">Fix</span></span> <a class="reference internal" href="../modules/generated/sklearn.model_selection.train_test_split.html#sklearn.model_selection.train_test_split" title="sklearn.model_selection.train_test_split"><code class="xref py py-func docutils literal notranslate"><span class="pre">model_selection.train_test_split</span></code></a> with a <code class="docutils literal notranslate"><span class="pre">stratify</span></code> parameter
and <a class="reference internal" href="../modules/generated/sklearn.model_selection.StratifiedShuffleSplit.html#sklearn.model_selection.StratifiedShuffleSplit" title="sklearn.model_selection.StratifiedShuffleSplit"><code class="xref py py-class docutils literal notranslate"><span class="pre">model_selection.StratifiedShuffleSplit</span></code></a> may lead to slightly
different results.</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="id7">
<h2>Changelog<a class="headerlink" href="#id7" title="Permalink to this heading">¶</a></h2>
<ul class="simple">
<li><p><span class="raw-html"><span class="badge badge-warning">API Change</span></span> The option for using the squared error via <code class="docutils literal notranslate"><span class="pre">loss</span></code> and
<code class="docutils literal notranslate"><span class="pre">criterion</span></code> parameters was made more consistent. The preferred way is by
setting the value to <code class="docutils literal notranslate"><span class="pre">"squared_error"</span></code>. Old option names are still valid,
produce the same models, but are deprecated and will be removed in version
1.2.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/19310">#19310</a> by <a class="reference external" href="https://github.com/lorentzenchr">Christian Lorentzen</a>.</p>
<ul>
<li><p>For <a class="reference internal" href="../modules/generated/sklearn.ensemble.ExtraTreesRegressor.html#sklearn.ensemble.ExtraTreesRegressor" title="sklearn.ensemble.ExtraTreesRegressor"><code class="xref py py-class docutils literal notranslate"><span class="pre">ensemble.ExtraTreesRegressor</span></code></a>, <code class="docutils literal notranslate"><span class="pre">criterion="mse"</span></code> is deprecated,
use <code class="docutils literal notranslate"><span class="pre">"squared_error"</span></code> instead which is now the default.</p></li>
<li><p>For <a class="reference internal" href="../modules/generated/sklearn.ensemble.GradientBoostingRegressor.html#sklearn.ensemble.GradientBoostingRegressor" title="sklearn.ensemble.GradientBoostingRegressor"><code class="xref py py-class docutils literal notranslate"><span class="pre">ensemble.GradientBoostingRegressor</span></code></a>, <code class="docutils literal notranslate"><span class="pre">loss="ls"</span></code> is deprecated,
use <code class="docutils literal notranslate"><span class="pre">"squared_error"</span></code> instead which is now the default.</p></li>
<li><p>For <a class="reference internal" href="../modules/generated/sklearn.ensemble.RandomForestRegressor.html#sklearn.ensemble.RandomForestRegressor" title="sklearn.ensemble.RandomForestRegressor"><code class="xref py py-class docutils literal notranslate"><span class="pre">ensemble.RandomForestRegressor</span></code></a>, <code class="docutils literal notranslate"><span class="pre">criterion="mse"</span></code> is deprecated,
use <code class="docutils literal notranslate"><span class="pre">"squared_error"</span></code> instead which is now the default.</p></li>
<li><p>For <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>, <code class="docutils literal notranslate"><span class="pre">loss="least_squares"</span></code>
is deprecated, use <code class="docutils literal notranslate"><span class="pre">"squared_error"</span></code> instead which is now the default.</p></li>
<li><p>For <a class="reference internal" href="../modules/generated/sklearn.linear_model.RANSACRegressor.html#sklearn.linear_model.RANSACRegressor" title="sklearn.linear_model.RANSACRegressor"><code class="xref py py-class docutils literal notranslate"><span class="pre">linear_model.RANSACRegressor</span></code></a>, <code class="docutils literal notranslate"><span class="pre">loss="squared_loss"</span></code> is
deprecated, use <code class="docutils literal notranslate"><span class="pre">"squared_error"</span></code> instead.</p></li>
<li><p>For <a class="reference internal" href="../modules/generated/sklearn.linear_model.SGDRegressor.html#sklearn.linear_model.SGDRegressor" title="sklearn.linear_model.SGDRegressor"><code class="xref py py-class docutils literal notranslate"><span class="pre">linear_model.SGDRegressor</span></code></a>, <code class="docutils literal notranslate"><span class="pre">loss="squared_loss"</span></code> is
deprecated, use <code class="docutils literal notranslate"><span class="pre">"squared_error"</span></code> instead which is now the default.</p></li>
<li><p>For <a class="reference internal" href="../modules/generated/sklearn.tree.DecisionTreeRegressor.html#sklearn.tree.DecisionTreeRegressor" title="sklearn.tree.DecisionTreeRegressor"><code class="xref py py-class docutils literal notranslate"><span class="pre">tree.DecisionTreeRegressor</span></code></a>, <code class="docutils literal notranslate"><span class="pre">criterion="mse"</span></code> is deprecated,
use <code class="docutils literal notranslate"><span class="pre">"squared_error"</span></code> instead which is now the default.</p></li>
<li><p>For <a class="reference internal" href="../modules/generated/sklearn.tree.ExtraTreeRegressor.html#sklearn.tree.ExtraTreeRegressor" title="sklearn.tree.ExtraTreeRegressor"><code class="xref py py-class docutils literal notranslate"><span class="pre">tree.ExtraTreeRegressor</span></code></a>, <code class="docutils literal notranslate"><span class="pre">criterion="mse"</span></code> is deprecated,
use <code class="docutils literal notranslate"><span class="pre">"squared_error"</span></code> instead which is now the default.</p></li>
</ul>
</li>
<li><p><span class="raw-html"><span class="badge badge-warning">API Change</span></span> The option for using the absolute error via <code class="docutils literal notranslate"><span class="pre">loss</span></code> and
<code class="docutils literal notranslate"><span class="pre">criterion</span></code> parameters was made more consistent. The preferred way is by
setting the value to <code class="docutils literal notranslate"><span class="pre">"absolute_error"</span></code>. Old option names are still valid,
produce the same models, but are deprecated and will be removed in version
1.2.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/19733">#19733</a> by <a class="reference external" href="https://github.com/lorentzenchr">Christian Lorentzen</a>.</p>
<ul>
<li><p>For <a class="reference internal" href="../modules/generated/sklearn.ensemble.ExtraTreesRegressor.html#sklearn.ensemble.ExtraTreesRegressor" title="sklearn.ensemble.ExtraTreesRegressor"><code class="xref py py-class docutils literal notranslate"><span class="pre">ensemble.ExtraTreesRegressor</span></code></a>, <code class="docutils literal notranslate"><span class="pre">criterion="mae"</span></code> is deprecated,
use <code class="docutils literal notranslate"><span class="pre">"absolute_error"</span></code> instead.</p></li>
<li><p>For <a class="reference internal" href="../modules/generated/sklearn.ensemble.GradientBoostingRegressor.html#sklearn.ensemble.GradientBoostingRegressor" title="sklearn.ensemble.GradientBoostingRegressor"><code class="xref py py-class docutils literal notranslate"><span class="pre">ensemble.GradientBoostingRegressor</span></code></a>, <code class="docutils literal notranslate"><span class="pre">loss="lad"</span></code> is deprecated,
use <code class="docutils literal notranslate"><span class="pre">"absolute_error"</span></code> instead.</p></li>
<li><p>For <a class="reference internal" href="../modules/generated/sklearn.ensemble.RandomForestRegressor.html#sklearn.ensemble.RandomForestRegressor" title="sklearn.ensemble.RandomForestRegressor"><code class="xref py py-class docutils literal notranslate"><span class="pre">ensemble.RandomForestRegressor</span></code></a>, <code class="docutils literal notranslate"><span class="pre">criterion="mae"</span></code> is deprecated,
use <code class="docutils literal notranslate"><span class="pre">"absolute_error"</span></code> instead.</p></li>
<li><p>For <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>,
<code class="docutils literal notranslate"><span class="pre">loss="least_absolute_deviation"</span></code> is deprecated, use <code class="docutils literal notranslate"><span class="pre">"absolute_error"</span></code>
instead.</p></li>
<li><p>For <a class="reference internal" href="../modules/generated/sklearn.linear_model.RANSACRegressor.html#sklearn.linear_model.RANSACRegressor" title="sklearn.linear_model.RANSACRegressor"><code class="xref py py-class docutils literal notranslate"><span class="pre">linear_model.RANSACRegressor</span></code></a>, <code class="docutils literal notranslate"><span class="pre">loss="absolute_loss"</span></code> is
deprecated, use <code class="docutils literal notranslate"><span class="pre">"absolute_error"</span></code> instead which is now the default.</p></li>
<li><p>For <a class="reference internal" href="../modules/generated/sklearn.tree.DecisionTreeRegressor.html#sklearn.tree.DecisionTreeRegressor" title="sklearn.tree.DecisionTreeRegressor"><code class="xref py py-class docutils literal notranslate"><span class="pre">tree.DecisionTreeRegressor</span></code></a>, <code class="docutils literal notranslate"><span class="pre">criterion="mae"</span></code> is deprecated,
use <code class="docutils literal notranslate"><span class="pre">"absolute_error"</span></code> instead.</p></li>
<li><p>For <a class="reference internal" href="../modules/generated/sklearn.tree.ExtraTreeRegressor.html#sklearn.tree.ExtraTreeRegressor" title="sklearn.tree.ExtraTreeRegressor"><code class="xref py py-class docutils literal notranslate"><span class="pre">tree.ExtraTreeRegressor</span></code></a>, <code class="docutils literal notranslate"><span class="pre">criterion="mae"</span></code> is deprecated,
use <code class="docutils literal notranslate"><span class="pre">"absolute_error"</span></code> instead.</p></li>
</ul>
</li>
<li><p><span class="raw-html"><span class="badge badge-warning">API Change</span></span> <code class="docutils literal notranslate"><span class="pre">np.matrix</span></code> usage is deprecated in 1.0 and will raise a <code class="docutils literal notranslate"><span class="pre">TypeError</span></code> in
1.2. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/20165">#20165</a> by <a class="reference external" href="https://github.com/thomasjpfan">Thomas Fan</a>.</p></li>
<li><p><span class="raw-html"><span class="badge badge-warning">API Change</span></span> <a class="reference internal" href="../glossary.html#term-get_feature_names_out"><span class="xref std std-term">get_feature_names_out</span></a> has been added to the transformer API
to get the names of the output features. <code class="docutils literal notranslate"><span class="pre">get_feature_names</span></code> has in
turn been deprecated. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/18444">#18444</a> by <a class="reference external" href="https://github.com/thomasjpfan">Thomas Fan</a>.</p></li>
<li><p><span class="raw-html"><span class="badge badge-warning">API Change</span></span> All estimators store <code class="docutils literal notranslate"><span class="pre">feature_names_in_</span></code> when fitted on pandas Dataframes.
These feature names are compared to names seen in non-<code class="docutils literal notranslate"><span class="pre">fit</span></code> methods, e.g.
<code class="docutils literal notranslate"><span class="pre">transform</span></code> and will raise a <code class="docutils literal notranslate"><span class="pre">FutureWarning</span></code> if they are not consistent.
These <code class="docutils literal notranslate"><span class="pre">FutureWarning</span></code> s will become <code class="docutils literal notranslate"><span class="pre">ValueError</span></code> s in 1.2. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/18010">#18010</a> by
<a class="reference external" href="https://github.com/thomasjpfan">Thomas Fan</a>.</p></li>
</ul>
<section id="sklearn-base">
<h3><a class="reference internal" href="../modules/classes.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="Permalink to this heading">¶</a></h3>
<ul class="simple">
<li><p><span class="raw-html"><span class="badge badge-danger">Fix</span></span> <a class="reference internal" href="../modules/generated/sklearn.config_context.html#sklearn.config_context" title="sklearn.config_context"><code class="xref py py-func docutils literal notranslate"><span class="pre">config_context</span></code></a> is now threadsafe. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/18736">#18736</a> by <a class="reference external" href="https://github.com/thomasjpfan">Thomas Fan</a>.</p></li>
</ul>
</section>
<section id="id8">
<h3><a class="reference internal" href="../modules/classes.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="#id8" title="Permalink to this heading">¶</a></h3>
<ul class="simple">
<li><p><span class="raw-html"><span class="badge badge-success">Feature</span></span> <a class="reference internal" href="../modules/generated/sklearn.calibration.CalibrationDisplay.html#sklearn.calibration.CalibrationDisplay" title="sklearn.calibration.CalibrationDisplay"><code class="xref py py-func docutils literal notranslate"><span class="pre">calibration.CalibrationDisplay</span></code></a> added to plot
calibration curves. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/17443">#17443</a> by <a class="reference external" href="https://github.com/lucyleeow">Lucy Liu</a>.</p></li>
<li><p><span class="raw-html"><span class="badge badge-danger">Fix</span></span> The <code class="docutils literal notranslate"><span class="pre">predict</span></code> and <code class="docutils literal notranslate"><span class="pre">predict_proba</span></code> methods of
<a class="reference internal" href="../modules/generated/sklearn.calibration.CalibratedClassifierCV.html#sklearn.calibration.CalibratedClassifierCV" title="sklearn.calibration.CalibratedClassifierCV"><code class="xref py py-class docutils literal notranslate"><span class="pre">calibration.CalibratedClassifierCV</span></code></a> can now properly be used on
prefitted pipelines. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/19641">#19641</a> by <a class="reference external" href="https://github.com/AlekLefebvre">Alek Lefebvre</a>.</p></li>
<li><p><span class="raw-html"><span class="badge badge-danger">Fix</span></span> Fixed an error when using a <a class="reference internal" href="../modules/generated/sklearn.ensemble.VotingClassifier.html#sklearn.ensemble.VotingClassifier" title="sklearn.ensemble.VotingClassifier"><code class="xref py py-class docutils literal notranslate"><span class="pre">ensemble.VotingClassifier</span></code></a>
as <code class="docutils literal notranslate"><span class="pre">base_estimator</span></code> in <a class="reference internal" href="../modules/generated/sklearn.calibration.CalibratedClassifierCV.html#sklearn.calibration.CalibratedClassifierCV" title="sklearn.calibration.CalibratedClassifierCV"><code class="xref py py-class docutils literal notranslate"><span class="pre">calibration.CalibratedClassifierCV</span></code></a>.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/20087">#20087</a> by <a class="reference external" href="https://github.com/clement-f">Clément Fauchereau</a>.</p></li>
</ul>
</section>
<section id="id9">
<h3><a class="reference internal" href="../modules/classes.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="#id9" title="Permalink to this heading">¶</a></h3>
<ul class="simple">
<li><p><span class="raw-html"><span class="badge badge-info">Efficiency</span></span> The <code class="docutils literal notranslate"><span class="pre">"k-means++"</span></code> initialization of <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>
and <a class="reference internal" href="../modules/generated/sklearn.cluster.MiniBatchKMeans.html#sklearn.cluster.MiniBatchKMeans" title="sklearn.cluster.MiniBatchKMeans"><code class="xref py py-class docutils literal notranslate"><span class="pre">cluster.MiniBatchKMeans</span></code></a> is now faster, especially in multicore
settings. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/19002">#19002</a> by <a class="reference external" href="https://github.com/Erotemic">Jon Crall</a> and <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 badge-info">Efficiency</span></span> <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> with <code class="docutils literal notranslate"><span class="pre">algorithm='elkan'</span></code> is now faster
in multicore settings. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/19052">#19052</a> by
<a class="reference external" href="https://github.com/YusukeNagasaka">Yusuke Nagasaka</a>.</p></li>
<li><p><span class="raw-html"><span class="badge badge-info">Efficiency</span></span> <a class="reference internal" href="../modules/generated/sklearn.cluster.MiniBatchKMeans.html#sklearn.cluster.MiniBatchKMeans" title="sklearn.cluster.MiniBatchKMeans"><code class="xref py py-class docutils literal notranslate"><span class="pre">cluster.MiniBatchKMeans</span></code></a> is now faster in multicore
settings. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/17622">#17622</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 badge-info">Efficiency</span></span> <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> can now cache the output of the
computation of the tree, using the <code class="docutils literal notranslate"><span class="pre">memory</span></code> parameter. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/19024">#19024</a> by
<a class="reference external" href="https://github.com/frankier">Frankie Robertson</a>.</p></li>
<li><p><span class="raw-html"><span class="badge badge-info">Enhancement</span></span> The <code class="docutils literal notranslate"><span class="pre">predict</span></code> and <code class="docutils literal notranslate"><span class="pre">fit_predict</span></code> methods of
<a class="reference internal" href="../modules/generated/sklearn.cluster.AffinityPropagation.html#sklearn.cluster.AffinityPropagation" title="sklearn.cluster.AffinityPropagation"><code class="xref py py-class docutils literal notranslate"><span class="pre">cluster.AffinityPropagation</span></code></a> now accept sparse data type for input
data.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/20117">#20117</a> by <a class="reference external" href="https://github.com/venkyyuvy">Venkatachalam Natchiappan</a></p></li>
<li><p><span class="raw-html"><span class="badge badge-danger">Fix</span></span> Fixed a bug in <a class="reference internal" href="../modules/generated/sklearn.cluster.MiniBatchKMeans.html#sklearn.cluster.MiniBatchKMeans" title="sklearn.cluster.MiniBatchKMeans"><code class="xref py py-class docutils literal notranslate"><span class="pre">cluster.MiniBatchKMeans</span></code></a> where the sample
weights were partially ignored when the input is sparse. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/17622">#17622</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 badge-danger">Fix</span></span> Improved convergence detection based on center change in
<a class="reference internal" href="../modules/generated/sklearn.cluster.MiniBatchKMeans.html#sklearn.cluster.MiniBatchKMeans" title="sklearn.cluster.MiniBatchKMeans"><code class="xref py py-class docutils literal notranslate"><span class="pre">cluster.MiniBatchKMeans</span></code></a> which was almost never achievable.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/17622">#17622</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 badge-danger">Fix</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> now supports readonly
memory-mapped datasets.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/19883">#19883</a> by <a class="reference external" href="https://github.com/jjerphan">Julien Jerphanion</a>.</p></li>
<li><p><span class="raw-html"><span class="badge badge-danger">Fix</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> correctly connects components
when connectivity and affinity are both precomputed and the number
of connected components is greater than 1. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/20597">#20597</a> by
<a class="reference external" href="https://github.com/thomasjpfan">Thomas Fan</a>.</p></li>
<li><p><span class="raw-html"><span class="badge badge-danger">Fix</span></span> <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> does not accept a <code class="docutils literal notranslate"><span class="pre">**params</span></code> kwarg in
the <code class="docutils literal notranslate"><span class="pre">fit</span></code> function anymore, resulting in a more concise error message. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/20899">#20899</a>
by <a class="reference external" href="https://github.com/adam2392">Adam Li</a>.</p></li>
<li><p><span class="raw-html"><span class="badge badge-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>, ensuring reproducibility and equivalence
between sparse and dense input. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/20200">#20200</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 badge-warning">API Change</span></span> <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> attributes, <code class="docutils literal notranslate"><span class="pre">fit_</span></code> and <code class="docutils literal notranslate"><span class="pre">partial_fit_</span></code>, are
deprecated and will be removed in 1.2. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/19297">#19297</a> by <a class="reference external" href="https://github.com/thomasjpfan">Thomas Fan</a>.</p></li>
<li><p><span class="raw-html"><span class="badge badge-warning">API Change</span></span> the default value for the <code class="docutils literal notranslate"><span class="pre">batch_size</span></code> parameter of
<a class="reference internal" href="../modules/generated/sklearn.cluster.MiniBatchKMeans.html#sklearn.cluster.MiniBatchKMeans" title="sklearn.cluster.MiniBatchKMeans"><code class="xref py py-class docutils literal notranslate"><span class="pre">cluster.MiniBatchKMeans</span></code></a> was changed from 100 to 1024 due to
efficiency reasons. The <code class="docutils literal notranslate"><span class="pre">n_iter_</span></code> attribute of
<a class="reference internal" href="../modules/generated/sklearn.cluster.MiniBatchKMeans.html#sklearn.cluster.MiniBatchKMeans" title="sklearn.cluster.MiniBatchKMeans"><code class="xref py py-class docutils literal notranslate"><span class="pre">cluster.MiniBatchKMeans</span></code></a> now reports the number of started epochs and
the <code class="docutils literal notranslate"><span class="pre">n_steps_</span></code> attribute reports the number of mini batches processed.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/17622">#17622</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 badge-warning">API Change</span></span> <a class="reference internal" href="../modules/generated/sklearn.cluster.spectral_clustering.html#sklearn.cluster.spectral_clustering" title="sklearn.cluster.spectral_clustering"><code class="xref py py-func docutils literal notranslate"><span class="pre">cluster.spectral_clustering</span></code></a> raises an improved error when passed
a <code class="docutils literal notranslate"><span class="pre">np.matrix</span></code>. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/20560">#20560</a> by <a class="reference external" href="https://github.com/thomasjpfan">Thomas Fan</a>.</p></li>
</ul>
</section>
<section id="sklearn-compose">
<h3><a class="reference internal" href="../modules/classes.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="Permalink to this heading">¶</a></h3>
<ul class="simple">
<li><p><span class="raw-html"><span class="badge badge-info">Enhancement</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> now records the output
of each transformer in <code class="docutils literal notranslate"><span class="pre">output_indices_</span></code>. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/18393">#18393</a> by
<a class="reference external" href="https://github.com/lbittarello">Luca Bittarello</a>.</p></li>
<li><p><span class="raw-html"><span class="badge badge-info">Enhancement</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> now allows DataFrame input to
have its columns appear in a changed order in <code class="docutils literal notranslate"><span class="pre">transform</span></code>. Further, columns that
are dropped will not be required in transform, and additional columns will be
ignored if <code class="docutils literal notranslate"><span class="pre">remainder='drop'</span></code>. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/19263">#19263</a> by <a class="reference external" href="https://github.com/thomasjpfan">Thomas Fan</a>.</p></li>
<li><p><span class="raw-html"><span class="badge badge-info">Enhancement</span></span> Adds <code class="docutils literal notranslate"><span class="pre">**predict_params</span></code> keyword argument to
<a class="reference internal" href="../modules/generated/sklearn.compose.TransformedTargetRegressor.html#sklearn.compose.TransformedTargetRegressor.predict" title="sklearn.compose.TransformedTargetRegressor.predict"><code class="xref py py-meth docutils literal notranslate"><span class="pre">compose.TransformedTargetRegressor.predict</span></code></a> that passes keyword
argument to the regressor.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/19244">#19244</a> by <a class="reference external" href="https://github.com/ricardojnf">Ricardo</a>.</p></li>
<li><p><span class="raw-html"><span class="badge badge-danger">Fix</span></span> <code class="docutils literal notranslate"><span class="pre">compose.ColumnTransformer.get_feature_names</span></code> supports
non-string feature names returned by any of its transformers. However, note
that <code class="docutils literal notranslate"><span class="pre">get_feature_names</span></code> is deprecated, use <code class="docutils literal notranslate"><span class="pre">get_feature_names_out</span></code>
instead. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/18459">#18459</a> by <a class="reference external" href="https://github.com/albertvillanova">Albert Villanova del Moral</a>
and <a class="reference external" href="https://github.com/alonsosilvaallende">Alonso Silva Allende</a>.</p></li>
<li><p><span class="raw-html"><span class="badge badge-danger">Fix</span></span> <a class="reference internal" href="../modules/generated/sklearn.compose.TransformedTargetRegressor.html#sklearn.compose.TransformedTargetRegressor" title="sklearn.compose.TransformedTargetRegressor"><code class="xref py py-class docutils literal notranslate"><span class="pre">compose.TransformedTargetRegressor</span></code></a> now takes nD targets with
an adequate transformer.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/18898">#18898</a> by <a class="reference external" href="https://github.com/panangam">Oras Phongpanagnam</a>.</p></li>
<li><p><span class="raw-html"><span class="badge badge-warning">API Change</span></span> Adds <code class="docutils literal notranslate"><span class="pre">verbose_feature_names_out</span></code> to <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>.
This flag controls the prefixing of feature names out in
<a class="reference internal" href="../glossary.html#term-get_feature_names_out"><span class="xref std std-term">get_feature_names_out</span></a>. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/18444">#18444</a> and <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/21080">#21080</a> by <a class="reference external" href="https://github.com/thomasjpfan">Thomas Fan</a>.</p></li>
</ul>
</section>
<section id="sklearn-covariance">
<h3><a class="reference internal" href="../modules/classes.html#module-sklearn.covariance" title="sklearn.covariance"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.covariance</span></code></a><a class="headerlink" href="#sklearn-covariance" title="Permalink to this heading">¶</a></h3>
<ul class="simple">
<li><p><span class="raw-html"><span class="badge badge-danger">Fix</span></span> Adds arrays check to <a class="reference internal" href="../modules/generated/sklearn.covariance.ledoit_wolf.html#sklearn.covariance.ledoit_wolf" title="sklearn.covariance.ledoit_wolf"><code class="xref py py-func docutils literal notranslate"><span class="pre">covariance.ledoit_wolf</span></code></a> and
<a class="reference internal" href="../modules/generated/sklearn.covariance.ledoit_wolf_shrinkage.html#sklearn.covariance.ledoit_wolf_shrinkage" title="sklearn.covariance.ledoit_wolf_shrinkage"><code class="xref py py-func docutils literal notranslate"><span class="pre">covariance.ledoit_wolf_shrinkage</span></code></a>. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/20416">#20416</a> by <a class="reference external" href="https://github.com/defoishugo">Hugo Defois</a>.</p></li>
<li><p><span class="raw-html"><span class="badge badge-warning">API Change</span></span> Deprecates the following keys in <code class="docutils literal notranslate"><span class="pre">cv_results_</span></code>: <code class="docutils literal notranslate"><span class="pre">'mean_score'</span></code>,
<code class="docutils literal notranslate"><span class="pre">'std_score'</span></code>, and <code class="docutils literal notranslate"><span class="pre">'split(k)_score'</span></code> in favor of <code class="docutils literal notranslate"><span class="pre">'mean_test_score'</span></code>
<code class="docutils literal notranslate"><span class="pre">'std_test_score'</span></code>, and <code class="docutils literal notranslate"><span class="pre">'split(k)_test_score'</span></code>. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/20583">#20583</a> by <a class="reference external" href="https://github.com/thomasjpfan">Thomas Fan</a>.</p></li>
</ul>
</section>
<section id="id10">
<h3><a class="reference internal" href="../modules/classes.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="Permalink to this heading">¶</a></h3>
<ul class="simple">
<li><p><span class="raw-html"><span class="badge badge-info">Enhancement</span></span> <a class="reference internal" href="../modules/generated/sklearn.datasets.fetch_openml.html#sklearn.datasets.fetch_openml" title="sklearn.datasets.fetch_openml"><code class="xref py py-func docutils literal notranslate"><span class="pre">datasets.fetch_openml</span></code></a> now supports categories with
missing values when returning a pandas dataframe. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/19365">#19365</a> by
<a class="reference external" href="https://github.com/thomasjpfan">Thomas Fan</a> and <a class="reference external" href="https://github.com/amy12xx">Amanda Dsouza</a> and
<a class="reference external" href="https://github.com/elateifsara">EL-ATEIF Sara</a>.</p></li>
<li><p><span class="raw-html"><span class="badge badge-info">Enhancement</span></span> <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> raises a better message
when the cached file is invalid. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/19669">#19669</a> <a class="reference external" href="https://github.com/thomasjpfan">Thomas Fan</a>.</p></li>
<li><p><span class="raw-html"><span class="badge badge-info">Enhancement</span></span> Replace usages of <code class="docutils literal notranslate"><span class="pre">__file__</span></code> related to resource file I/O
with <code class="docutils literal notranslate"><span class="pre">importlib.resources</span></code> to avoid the assumption that these resource
files (e.g. <code class="docutils literal notranslate"><span class="pre">iris.csv</span></code>) already exist on a filesystem, and by extension
to enable compatibility with tools such as <code class="docutils literal notranslate"><span class="pre">PyOxidizer</span></code>.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/20297">#20297</a> by <a class="reference external" href="https://github.com/jackzyliu">Jack Liu</a>.</p></li>
<li><p><span class="raw-html"><span class="badge badge-danger">Fix</span></span> Shorten data file names in the openml tests to better support
installing on Windows and its default 260 character limit on file names.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/20209">#20209</a> by <a class="reference external" href="https://github.com/thomasjpfan">Thomas Fan</a>.</p></li>
<li><p><span class="raw-html"><span class="badge badge-danger">Fix</span></span> <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> returns dataframes when
<code class="docutils literal notranslate"><span class="pre">return_X_y=True</span></code> and <code class="docutils literal notranslate"><span class="pre">as_frame=True</span></code>. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/19011">#19011</a> by <a class="reference external" href="https://github.com/thomasjpfan">Thomas Fan</a>.</p></li>
<li><p><span class="raw-html"><span class="badge badge-warning">API Change</span></span> Deprecates <code class="xref py py-func docutils literal notranslate"><span class="pre">datasets.load_boston</span></code> in 1.0 and it will be removed
in 1.2. Alternative code snippets to load similar datasets are provided.
Please report to the docstring of the function for details.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/20729">#20729</a> by <a class="reference external" href="https://github.com/glemaitre">Guillaume Lemaitre</a>.</p></li>
</ul>
</section>
<section id="id11">
<h3><a class="reference internal" href="../modules/classes.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="Permalink to this heading">¶</a></h3>
<ul class="simple">
<li><p><span class="raw-html"><span class="badge badge-info">Enhancement</span></span> added a new approximate solver (randomized SVD, available with
<code class="docutils literal notranslate"><span class="pre">eigen_solver='randomized'</span></code>) to <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>. This
significantly accelerates computation when the number of samples is much
larger than the desired number of components.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/12069">#12069</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 badge-danger">Fix</span></span> Fixes incorrect multiple data-conversion warnings when clustering
boolean data. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/19046">#19046</a> by <a class="reference external" href="https://github.com/jdsurya">Surya Prakash</a>.</p></li>
<li><p><span class="raw-html"><span class="badge badge-danger">Fix</span></span> Fixed <code class="xref py py-func docutils literal notranslate"><span class="pre">dict_learning</span></code>, used by
<a class="reference internal" href="../modules/generated/sklearn.decomposition.DictionaryLearning.html#sklearn.decomposition.DictionaryLearning" title="sklearn.decomposition.DictionaryLearning"><code class="xref py py-class docutils literal notranslate"><span class="pre">decomposition.DictionaryLearning</span></code></a>, to ensure determinism of the
output. Achieved by flipping signs of the SVD output which is used to
initialize the code. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/18433">#18433</a> by <a class="reference external" href="https://github.com/brcharron">Bruno Charron</a>.</p></li>
<li><p><span class="raw-html"><span class="badge badge-danger">Fix</span></span> Fixed a bug in <a class="reference internal" href="../modules/generated/sklearn.decomposition.MiniBatchDictionaryLearning.html#sklearn.decomposition.MiniBatchDictionaryLearning" title="sklearn.decomposition.MiniBatchDictionaryLearning"><code class="xref py py-class docutils literal notranslate"><span class="pre">decomposition.MiniBatchDictionaryLearning</span></code></a>,
<a class="reference internal" href="../modules/generated/sklearn.decomposition.MiniBatchSparsePCA.html#sklearn.decomposition.MiniBatchSparsePCA" title="sklearn.decomposition.MiniBatchSparsePCA"><code class="xref py py-class docutils literal notranslate"><span class="pre">decomposition.MiniBatchSparsePCA</span></code></a> and
<a class="reference internal" href="../modules/generated/sklearn.decomposition.dict_learning_online.html#sklearn.decomposition.dict_learning_online" title="sklearn.decomposition.dict_learning_online"><code class="xref py py-func docutils literal notranslate"><span class="pre">decomposition.dict_learning_online</span></code></a> where the update of the dictionary
was incorrect. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/19198">#19198</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 badge-danger">Fix</span></span> Fixed a bug in <a class="reference internal" href="../modules/generated/sklearn.decomposition.DictionaryLearning.html#sklearn.decomposition.DictionaryLearning" title="sklearn.decomposition.DictionaryLearning"><code class="xref py py-class docutils literal notranslate"><span class="pre">decomposition.DictionaryLearning</span></code></a>,
<a class="reference internal" href="../modules/generated/sklearn.decomposition.SparsePCA.html#sklearn.decomposition.SparsePCA" title="sklearn.decomposition.SparsePCA"><code class="xref py py-class docutils literal notranslate"><span class="pre">decomposition.SparsePCA</span></code></a>,
<a class="reference internal" href="../modules/generated/sklearn.decomposition.MiniBatchDictionaryLearning.html#sklearn.decomposition.MiniBatchDictionaryLearning" title="sklearn.decomposition.MiniBatchDictionaryLearning"><code class="xref py py-class docutils literal notranslate"><span class="pre">decomposition.MiniBatchDictionaryLearning</span></code></a>,
<a class="reference internal" href="../modules/generated/sklearn.decomposition.MiniBatchSparsePCA.html#sklearn.decomposition.MiniBatchSparsePCA" title="sklearn.decomposition.MiniBatchSparsePCA"><code class="xref py py-class docutils literal notranslate"><span class="pre">decomposition.MiniBatchSparsePCA</span></code></a>,
<a class="reference internal" href="../modules/generated/sklearn.decomposition.dict_learning.html#sklearn.decomposition.dict_learning" title="sklearn.decomposition.dict_learning"><code class="xref py py-func docutils literal notranslate"><span class="pre">decomposition.dict_learning</span></code></a> and
<a class="reference internal" href="../modules/generated/sklearn.decomposition.dict_learning_online.html#sklearn.decomposition.dict_learning_online" title="sklearn.decomposition.dict_learning_online"><code class="xref py py-func docutils literal notranslate"><span class="pre">decomposition.dict_learning_online</span></code></a> where the restart of unused atoms
during the dictionary update was not working as expected. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/19198">#19198</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 badge-warning">API Change</span></span> In <a class="reference internal" href="../modules/generated/sklearn.decomposition.DictionaryLearning.html#sklearn.decomposition.DictionaryLearning" title="sklearn.decomposition.DictionaryLearning"><code class="xref py py-class docutils literal notranslate"><span class="pre">decomposition.DictionaryLearning</span></code></a>,
<a class="reference internal" href="../modules/generated/sklearn.decomposition.MiniBatchDictionaryLearning.html#sklearn.decomposition.MiniBatchDictionaryLearning" title="sklearn.decomposition.MiniBatchDictionaryLearning"><code class="xref py py-class docutils literal notranslate"><span class="pre">decomposition.MiniBatchDictionaryLearning</span></code></a>,
<a class="reference internal" href="../modules/generated/sklearn.decomposition.dict_learning.html#sklearn.decomposition.dict_learning" title="sklearn.decomposition.dict_learning"><code class="xref py py-func docutils literal notranslate"><span class="pre">decomposition.dict_learning</span></code></a> and
<a class="reference internal" href="../modules/generated/sklearn.decomposition.dict_learning_online.html#sklearn.decomposition.dict_learning_online" title="sklearn.decomposition.dict_learning_online"><code class="xref py py-func docutils literal notranslate"><span class="pre">decomposition.dict_learning_online</span></code></a>, <code class="docutils literal notranslate"><span class="pre">transform_alpha</span></code> will be equal
to <code class="docutils literal notranslate"><span class="pre">alpha</span></code> instead of 1.0 by default starting from version 1.2 <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/19159">#19159</a> by
<a class="reference external" href="https://github.com/bmalezieux">Benoît Malézieux</a>.</p></li>
<li><p><span class="raw-html"><span class="badge badge-warning">API Change</span></span> Rename variable names in <code class="xref py py-class docutils literal notranslate"><span class="pre">KernelPCA</span></code> to improve
readability. <code class="docutils literal notranslate"><span class="pre">lambdas_</span></code> and <code class="docutils literal notranslate"><span class="pre">alphas_</span></code> are renamed to <code class="docutils literal notranslate"><span class="pre">eigenvalues_</span></code>
and <code class="docutils literal notranslate"><span class="pre">eigenvectors_</span></code>, respectively. <code class="docutils literal notranslate"><span class="pre">lambdas_</span></code> and <code class="docutils literal notranslate"><span class="pre">alphas_</span></code> are
deprecated and will be removed in 1.2.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/19908">#19908</a> by <a class="reference external" href="https://github.com/kstoneriv3">Kei Ishikawa</a>.</p></li>
<li><p><span class="raw-html"><span class="badge badge-warning">API Change</span></span> The <code class="docutils literal notranslate"><span class="pre">alpha</span></code> and <code class="docutils literal notranslate"><span class="pre">regularization</span></code> parameters of <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> and
<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> are deprecated and will be removed
in 1.2. Use the new parameters <code class="docutils literal notranslate"><span class="pre">alpha_W</span></code> and <code class="docutils literal notranslate"><span class="pre">alpha_H</span></code> instead. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/20512">#20512</a> by
<a class="reference external" href="https://github.com/jeremiedbb">Jérémie du Boisberranger</a>.</p></li>
</ul>
</section>
<section id="sklearn-dummy">
<h3><a class="reference internal" href="../modules/classes.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="Permalink to this heading">¶</a></h3>
<ul class="simple">
<li><p><span class="raw-html"><span class="badge badge-warning">API Change</span></span> Attribute <code class="docutils literal notranslate"><span class="pre">n_features_in_</span></code> in <a class="reference internal" href="../modules/generated/sklearn.dummy.DummyRegressor.html#sklearn.dummy.DummyRegressor" title="sklearn.dummy.DummyRegressor"><code class="xref py py-class docutils literal notranslate"><span class="pre">dummy.DummyRegressor</span></code></a> and
<a class="reference internal" href="../modules/generated/sklearn.dummy.DummyRegressor.html#sklearn.dummy.DummyRegressor" title="sklearn.dummy.DummyRegressor"><code class="xref py py-class docutils literal notranslate"><span class="pre">dummy.DummyRegressor</span></code></a> is deprecated and will be removed in 1.2.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/20960">#20960</a> by <a class="reference external" href="https://github.com/thomasjpfan">Thomas Fan</a>.</p></li>
</ul>
</section>
<section id="id12">
<h3><a class="reference internal" href="../modules/classes.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="#id12" title="Permalink to this heading">¶</a></h3>
<ul class="simple">
<li><p><span class="raw-html"><span class="badge badge-info">Enhancement</span></span> <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">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">HistGradientBoostingRegressor</span></code></a> take cgroups quotas
into account when deciding the number of threads used by OpenMP. This
avoids performance problems caused by over-subscription when using those
classes in a docker container for instance. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/20477">#20477</a>
by <a class="reference external" href="https://github.com/thomasjpfan">Thomas Fan</a>.</p></li>
<li><p><span class="raw-html"><span class="badge badge-info">Enhancement</span></span> <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">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">HistGradientBoostingRegressor</span></code></a> are no longer
experimental. They are now considered stable and are subject to the same
deprecation cycles as all other estimators. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/19799">#19799</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 badge-info">Enhancement</span></span> Improve the HTML rendering of the
<a class="reference internal" href="../modules/generated/sklearn.ensemble.StackingClassifier.html#sklearn.ensemble.StackingClassifier" title="sklearn.ensemble.StackingClassifier"><code class="xref py py-class docutils literal notranslate"><span class="pre">ensemble.StackingClassifier</span></code></a> and <a class="reference internal" href="../modules/generated/sklearn.ensemble.StackingRegressor.html#sklearn.ensemble.StackingRegressor" title="sklearn.ensemble.StackingRegressor"><code class="xref py py-class docutils literal notranslate"><span class="pre">ensemble.StackingRegressor</span></code></a>.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/19564">#19564</a> by <a class="reference external" href="https://github.com/thomasjpfan">Thomas Fan</a>.</p></li>
<li><p><span class="raw-html"><span class="badge badge-info">Enhancement</span></span> Added Poisson criterion to
<a class="reference internal" href="../modules/generated/sklearn.ensemble.RandomForestRegressor.html#sklearn.ensemble.RandomForestRegressor" title="sklearn.ensemble.RandomForestRegressor"><code class="xref py py-class docutils literal notranslate"><span class="pre">ensemble.RandomForestRegressor</span></code></a>. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/19836">#19836</a> by <a class="reference external" href="https://github.com/bsun94">Brian Sun</a>.</p></li>
<li><p><span class="raw-html"><span class="badge badge-danger">Fix</span></span> Do not allow to compute out-of-bag (OOB) score in
<a class="reference internal" href="../modules/generated/sklearn.ensemble.RandomForestClassifier.html#sklearn.ensemble.RandomForestClassifier" title="sklearn.ensemble.RandomForestClassifier"><code class="xref py py-class docutils literal notranslate"><span class="pre">ensemble.RandomForestClassifier</span></code></a> and
<a class="reference internal" href="../modules/generated/sklearn.ensemble.ExtraTreesClassifier.html#sklearn.ensemble.ExtraTreesClassifier" title="sklearn.ensemble.ExtraTreesClassifier"><code class="xref py py-class docutils literal notranslate"><span class="pre">ensemble.ExtraTreesClassifier</span></code></a> with multiclass-multioutput target
since scikit-learn does not provide any metric supporting this type of
target. Additional private refactoring was performed.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/19162">#19162</a> by <a class="reference external" href="https://github.com/glemaitre">Guillaume Lemaitre</a>.</p></li>
<li><p><span class="raw-html"><span class="badge badge-danger">Fix</span></span> Improve numerical precision for weights boosting in
<a class="reference internal" href="../modules/generated/sklearn.ensemble.AdaBoostClassifier.html#sklearn.ensemble.AdaBoostClassifier" title="sklearn.ensemble.AdaBoostClassifier"><code class="xref py py-class docutils literal notranslate"><span class="pre">ensemble.AdaBoostClassifier</span></code></a> and <a class="reference internal" href="../modules/generated/sklearn.ensemble.AdaBoostRegressor.html#sklearn.ensemble.AdaBoostRegressor" title="sklearn.ensemble.AdaBoostRegressor"><code class="xref py py-class docutils literal notranslate"><span class="pre">ensemble.AdaBoostRegressor</span></code></a>
to avoid underflows.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/10096">#10096</a> by <a class="reference external" href="https://github.com/fenilsuchak">Fenil Suchak</a>.</p></li>
<li><p><span class="raw-html"><span class="badge badge-danger">Fix</span></span> Fixed the range of the argument <code class="docutils literal notranslate"><span class="pre">max_samples</span></code> to be <code class="docutils literal notranslate"><span class="pre">(0.0,</span> <span class="pre">1.0]</span></code>
in <a class="reference internal" href="../modules/generated/sklearn.ensemble.RandomForestClassifier.html#sklearn.ensemble.RandomForestClassifier" title="sklearn.ensemble.RandomForestClassifier"><code class="xref py py-class docutils literal notranslate"><span class="pre">ensemble.RandomForestClassifier</span></code></a>,
<a class="reference internal" href="../modules/generated/sklearn.ensemble.RandomForestRegressor.html#sklearn.ensemble.RandomForestRegressor" title="sklearn.ensemble.RandomForestRegressor"><code class="xref py py-class docutils literal notranslate"><span class="pre">ensemble.RandomForestRegressor</span></code></a>, where <code class="docutils literal notranslate"><span class="pre">max_samples=1.0</span></code> is
interpreted as using all <code class="docutils literal notranslate"><span class="pre">n_samples</span></code> for bootstrapping. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/20159">#20159</a> by
<a class="reference external" href="https://github.com/murata-yu">@murata-yu</a>.</p></li>
<li><p><span class="raw-html"><span class="badge badge-danger">Fix</span></span> Fixed a bug in <a class="reference internal" href="../modules/generated/sklearn.ensemble.AdaBoostClassifier.html#sklearn.ensemble.AdaBoostClassifier" title="sklearn.ensemble.AdaBoostClassifier"><code class="xref py py-class docutils literal notranslate"><span class="pre">ensemble.AdaBoostClassifier</span></code></a> and
<a class="reference internal" href="../modules/generated/sklearn.ensemble.AdaBoostRegressor.html#sklearn.ensemble.AdaBoostRegressor" title="sklearn.ensemble.AdaBoostRegressor"><code class="xref py py-class docutils literal notranslate"><span class="pre">ensemble.AdaBoostRegressor</span></code></a> where the <code class="docutils literal notranslate"><span class="pre">sample_weight</span></code> parameter
got overwritten during <code class="docutils literal notranslate"><span class="pre">fit</span></code>.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/20534">#20534</a> by <a class="reference external" href="https://github.com/glemaitre">Guillaume Lemaitre</a>.</p></li>
<li><p><span class="raw-html"><span class="badge badge-warning">API Change</span></span> Removes <code class="docutils literal notranslate"><span class="pre">tol=None</span></code> option 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>. Please use <code class="docutils literal notranslate"><span class="pre">tol=0</span></code> for
the same behavior. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/19296">#19296</a> by <a class="reference external" href="https://github.com/thomasjpfan">Thomas Fan</a>.</p></li>
</ul>
</section>
<section id="id13">
<h3><a class="reference internal" href="../modules/classes.html#module-sklearn.feature_extraction" title="sklearn.feature_extraction"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.feature_extraction</span></code></a><a class="headerlink" href="#id13" title="Permalink to this heading">¶</a></h3>
<ul class="simple">
<li><p><span class="raw-html"><span class="badge badge-danger">Fix</span></span> Fixed a bug in <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">feature_extraction.text.HashingVectorizer</span></code></a>
where some input strings would result in negative indices in the transformed
data. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/19035">#19035</a> by <a class="reference external" href="https://github.com/ly648499246">Liu Yu</a>.</p></li>
<li><p><span class="raw-html"><span class="badge badge-danger">Fix</span></span> Fixed a bug in <a class="reference internal" href="../modules/generated/sklearn.feature_extraction.DictVectorizer.html#sklearn.feature_extraction.DictVectorizer" title="sklearn.feature_extraction.DictVectorizer"><code class="xref py py-class docutils literal notranslate"><span class="pre">feature_extraction.DictVectorizer</span></code></a> by raising an
error with unsupported value type.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/19520">#19520</a> by <a class="reference external" href="https://github.com/kamiyaa">Jeff Zhao</a>.</p></li>
<li><p><span class="raw-html"><span class="badge badge-danger">Fix</span></span> Fixed a bug in <a class="reference internal" href="../modules/generated/sklearn.feature_extraction.image.img_to_graph.html#sklearn.feature_extraction.image.img_to_graph" title="sklearn.feature_extraction.image.img_to_graph"><code class="xref py py-func docutils literal notranslate"><span class="pre">feature_extraction.image.img_to_graph</span></code></a>
and <a class="reference internal" href="../modules/generated/sklearn.feature_extraction.image.grid_to_graph.html#sklearn.feature_extraction.image.grid_to_graph" title="sklearn.feature_extraction.image.grid_to_graph"><code class="xref py py-func docutils literal notranslate"><span class="pre">feature_extraction.image.grid_to_graph</span></code></a> where singleton connected
components were not handled properly, resulting in a wrong vertex indexing.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/18964">#18964</a> by <a class="reference external" href="https://team.inria.fr/parietal/bertrand-thirions-page">Bertrand Thirion</a>.</p></li>
<li><p><span class="raw-html"><span class="badge badge-danger">Fix</span></span> Raise a warning in <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">feature_extraction.text.CountVectorizer</span></code></a>
with <code class="docutils literal notranslate"><span class="pre">lowercase=True</span></code> when there are vocabulary entries with uppercase
characters to avoid silent misses in the resulting feature vectors.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/19401">#19401</a> by <a class="reference external" href="https://github.com/zitorelova">Zito Relova</a></p></li>
</ul>
</section>
<section id="id14">
<h3><a class="reference internal" href="../modules/classes.html#module-sklearn.feature_selection" title="sklearn.feature_selection"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.feature_selection</span></code></a><a class="headerlink" href="#id14" title="Permalink to this heading">¶</a></h3>
<ul class="simple">
<li><p><span class="raw-html"><span class="badge badge-success">Feature</span></span> <a class="reference internal" href="../modules/generated/sklearn.feature_selection.r_regression.html#sklearn.feature_selection.r_regression" title="sklearn.feature_selection.r_regression"><code class="xref py py-func docutils literal notranslate"><span class="pre">feature_selection.r_regression</span></code></a> computes Pearson’s R
correlation coefficients between the features and the target.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/17169">#17169</a> by <a class="reference external" href="https://github.com/DSLituiev">Dmytro Lituiev</a>
and <a class="reference external" href="https://github.com/jjerphan">Julien Jerphanion</a>.</p></li>
<li><p><span class="raw-html"><span class="badge badge-info">Enhancement</span></span> <a class="reference internal" href="../modules/generated/sklearn.feature_selection.RFE.html#sklearn.feature_selection.RFE.fit" title="sklearn.feature_selection.RFE.fit"><code class="xref py py-func docutils literal notranslate"><span class="pre">feature_selection.RFE.fit</span></code></a> accepts additional estimator
parameters that are passed directly to the estimator’s <code class="docutils literal notranslate"><span class="pre">fit</span></code> method.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/20380">#20380</a> by <a class="reference external" href="https://github.com/ijpulidos">Iván Pulido</a>, <a class="reference external" href="https://github.com/fbidu">Felipe Bidu</a>,
<a class="reference external" href="https://github.com/g-rutter">Gil Rutter</a>, and <a class="reference external" href="https://github.com/adrinjalali">Adrin Jalali</a>.</p></li>
<li><p><span class="raw-html"><span class="badge badge-danger">Fix</span></span> Fix a bug in <a class="reference internal" href="../modules/generated/sklearn.isotonic.isotonic_regression.html#sklearn.isotonic.isotonic_regression" title="sklearn.isotonic.isotonic_regression"><code class="xref py py-func docutils literal notranslate"><span class="pre">isotonic.isotonic_regression</span></code></a> where the
<code class="docutils literal notranslate"><span class="pre">sample_weight</span></code> passed by a user were overwritten during <code class="docutils literal notranslate"><span class="pre">fit</span></code>.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/20515">#20515</a> by <a class="reference external" href="https://github.com/allefeld">Carsten Allefeld</a>.</p></li>
<li><p><span class="raw-html"><span class="badge badge-danger">Fix</span></span> Change <a class="reference internal" href="../modules/generated/sklearn.feature_selection.SequentialFeatureSelector.html#sklearn.feature_selection.SequentialFeatureSelector" title="sklearn.feature_selection.SequentialFeatureSelector"><code class="xref py py-func docutils literal notranslate"><span class="pre">feature_selection.SequentialFeatureSelector</span></code></a> to
allow for unsupervised modelling so that the <code class="docutils literal notranslate"><span class="pre">fit</span></code> signature need not
do any <code class="docutils literal notranslate"><span class="pre">y</span></code> validation and allow for <code class="docutils literal notranslate"><span class="pre">y=None</span></code>.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/19568">#19568</a> by <a class="reference external" href="https://github.com/ShyamDesai">Shyam Desai</a>.</p></li>
<li><p><span class="raw-html"><span class="badge badge-warning">API Change</span></span> Raises an error in <a class="reference internal" href="../modules/generated/sklearn.feature_selection.VarianceThreshold.html#sklearn.feature_selection.VarianceThreshold" title="sklearn.feature_selection.VarianceThreshold"><code class="xref py py-class docutils literal notranslate"><span class="pre">feature_selection.VarianceThreshold</span></code></a>
when the variance threshold is negative.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/20207">#20207</a> by <a class="reference external" href="https://github.com/europeanplaice">Tomohiro Endo</a></p></li>
<li><p><span class="raw-html"><span class="badge badge-warning">API Change</span></span> Deprecates <code class="docutils literal notranslate"><span class="pre">grid_scores_</span></code> in favor of split scores in <code class="docutils literal notranslate"><span class="pre">cv_results_</span></code> in
<a class="reference internal" href="../modules/generated/sklearn.feature_selection.RFECV.html#sklearn.feature_selection.RFECV" title="sklearn.feature_selection.RFECV"><code class="xref py py-class docutils literal notranslate"><span class="pre">feature_selection.RFECV</span></code></a>. <code class="docutils literal notranslate"><span class="pre">grid_scores_</span></code> will be removed in
version 1.2.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/20161">#20161</a> by <a class="reference external" href="https://github.com/wowry">Shuhei Kayawari</a> and <a class="reference external" href="https://github.com/arka204">@arka204</a>.</p></li>
</ul>
</section>
<section id="sklearn-inspection">
<h3><a class="reference internal" href="../modules/classes.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="Permalink to this heading">¶</a></h3>
<ul class="simple">
<li><p><span class="raw-html"><span class="badge badge-info">Enhancement</span></span> Add <code class="docutils literal notranslate"><span class="pre">max_samples</span></code> parameter in
<a class="reference internal" href="../modules/generated/sklearn.inspection.permutation_importance.html#sklearn.inspection.permutation_importance" title="sklearn.inspection.permutation_importance"><code class="xref py py-func docutils literal notranslate"><span class="pre">inspection.permutation_importance</span></code></a>. It enables to draw a subset of the
samples to compute the permutation importance. This is useful to keep the
method tractable when evaluating feature importance on large datasets.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/20431">#20431</a> by <a class="reference external" href="https://github.com/o1iv3r">Oliver Pfaffel</a>.</p></li>
<li><p><span class="raw-html"><span class="badge badge-info">Enhancement</span></span> Add kwargs to format ICE and PD lines separately in partial
dependence plots <code class="xref py py-func docutils literal notranslate"><span class="pre">inspection.plot_partial_dependence</span></code> and
<a class="reference internal" href="../modules/generated/sklearn.inspection.PartialDependenceDisplay.html#sklearn.inspection.PartialDependenceDisplay.plot" title="sklearn.inspection.PartialDependenceDisplay.plot"><code class="xref py py-meth docutils literal notranslate"><span class="pre">inspection.PartialDependenceDisplay.plot</span></code></a>. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/19428">#19428</a> by <a class="reference external" href="https://github.com/mhham">Mehdi
Hamoumi</a>.</p></li>
<li><p><span class="raw-html"><span class="badge badge-danger">Fix</span></span> Allow multiple scorers input to
<a class="reference internal" href="../modules/generated/sklearn.inspection.permutation_importance.html#sklearn.inspection.permutation_importance" title="sklearn.inspection.permutation_importance"><code class="xref py py-func docutils literal notranslate"><span class="pre">inspection.permutation_importance</span></code></a>. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/19411">#19411</a> by <a class="reference external" href="https://github.com/simonamaggio">Simona
Maggio</a>.</p></li>
<li><p><span class="raw-html"><span class="badge badge-warning">API Change</span></span> <a class="reference internal" href="../modules/generated/sklearn.inspection.PartialDependenceDisplay.html#sklearn.inspection.PartialDependenceDisplay" title="sklearn.inspection.PartialDependenceDisplay"><code class="xref py py-class docutils literal notranslate"><span class="pre">inspection.PartialDependenceDisplay</span></code></a> exposes a class method:
<a class="reference internal" href="../modules/generated/sklearn.inspection.PartialDependenceDisplay.html#sklearn.inspection.PartialDependenceDisplay.from_estimator" title="sklearn.inspection.PartialDependenceDisplay.from_estimator"><code class="xref py py-func docutils literal notranslate"><span class="pre">from_estimator</span></code></a>.
<code class="xref py py-func docutils literal notranslate"><span class="pre">inspection.plot_partial_dependence</span></code> is deprecated in favor of the
class method and will be removed in 1.2. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/20959">#20959</a> by <a class="reference external" href="https://github.com/thomasjpfan">Thomas Fan</a>.</p></li>
</ul>
</section>
<section id="sklearn-kernel-approximation">
<h3><a class="reference internal" href="../modules/classes.html#module-sklearn.kernel_approximation" title="sklearn.kernel_approximation"><code class="xref py py-mod docutils literal notranslate"><span class="pre">sklearn.kernel_approximation</span></code></a><a class="headerlink" href="#sklearn-kernel-approximation" title="Permalink to this heading">¶</a></h3>
<ul class="simple">
<li><p><span class="raw-html"><span class="badge badge-danger">Fix</span></span> Fix a bug in <a class="reference internal" href="../modules/generated/sklearn.kernel_approximation.Nystroem.html#sklearn.kernel_approximation.Nystroem" title="sklearn.kernel_approximation.Nystroem"><code class="xref py py-class docutils literal notranslate"><span class="pre">kernel_approximation.Nystroem</span></code></a>
where the attribute <code class="docutils literal notranslate"><span class="pre">component_indices_</span></code> did not correspond to the subset of
sample indices used to generate the approximated kernel. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/20554">#20554</a> by
<a class="reference external" href="https://github.com/kxytim">Xiangyin Kong</a>.</p></li>
</ul>
</section>
<section id="id15">
<h3><a class="reference internal" href="../modules/classes.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="#id15" title="Permalink to this heading">¶</a></h3>
<ul class="simple">
<li><p><span class="raw-html"><span class="badge badge-success">Major Feature</span></span> Added <a class="reference internal" href="../modules/generated/sklearn.linear_model.QuantileRegressor.html#sklearn.linear_model.QuantileRegressor" title="sklearn.linear_model.QuantileRegressor"><code class="xref py py-class docutils literal notranslate"><span class="pre">linear_model.QuantileRegressor</span></code></a> which implements
linear quantile regression with L1 penalty.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/9978">#9978</a> by <a class="reference external" href="https://github.com/avidale">David Dale</a> and
<a class="reference external" href="https://github.com/lorentzenchr">Christian Lorentzen</a>.</p></li>
<li><p><span class="raw-html"><span class="badge badge-success">Feature</span></span> The new <a class="reference internal" href="../modules/generated/sklearn.linear_model.SGDOneClassSVM.html#sklearn.linear_model.SGDOneClassSVM" title="sklearn.linear_model.SGDOneClassSVM"><code class="xref py py-class docutils literal notranslate"><span class="pre">linear_model.SGDOneClassSVM</span></code></a> provides an SGD
implementation of the linear One-Class SVM. Combined with kernel
approximation techniques, this implementation approximates the solution of
a kernelized One Class SVM while benefitting from a linear
complexity in the number of samples.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/10027">#10027</a> by <a class="reference external" href="https://github.com/albertcthomas">Albert Thomas</a>.</p></li>
<li><p><span class="raw-html"><span class="badge badge-success">Feature</span></span> Added <code class="docutils literal notranslate"><span class="pre">sample_weight</span></code> parameter to
<a class="reference internal" href="../modules/generated/sklearn.linear_model.LassoCV.html#sklearn.linear_model.LassoCV" title="sklearn.linear_model.LassoCV"><code class="xref py py-class docutils literal notranslate"><span class="pre">linear_model.LassoCV</span></code></a> and <a class="reference internal" href="../modules/generated/sklearn.linear_model.ElasticNetCV.html#sklearn.linear_model.ElasticNetCV" title="sklearn.linear_model.ElasticNetCV"><code class="xref py py-class docutils literal notranslate"><span class="pre">linear_model.ElasticNetCV</span></code></a>.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/16449">#16449</a> by <a class="reference external" href="https://github.com/lorentzenchr">Christian Lorentzen</a>.</p></li>
<li><p><span class="raw-html"><span class="badge badge-success">Feature</span></span> Added new solver <code class="docutils literal notranslate"><span class="pre">lbfgs</span></code> (available with <code class="docutils literal notranslate"><span class="pre">solver="lbfgs"</span></code>)
and <code class="docutils literal notranslate"><span class="pre">positive</span></code> argument to <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>. When <code class="docutils literal notranslate"><span class="pre">positive</span></code> is
set to <code class="docutils literal notranslate"><span class="pre">True</span></code>, forces the coefficients to be positive (only supported by
<code class="docutils literal notranslate"><span class="pre">lbfgs</span></code>). <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/20231">#20231</a> by <a class="reference external" href="https://github.com/tnakae">Toshihiro Nakae</a>.</p></li>
<li><p><span class="raw-html"><span class="badge badge-info">Efficiency</span></span> The implementation of <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>
has been optimised for dense matrices when using <code class="docutils literal notranslate"><span class="pre">solver='newton-cg'</span></code> and
<code class="docutils literal notranslate"><span class="pre">multi_class!='multinomial'</span></code>.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/19571">#19571</a> by <a class="reference external" href="https://github.com/jjerphan">Julien Jerphanion</a>.</p></li>
<li><p><span class="raw-html"><span class="badge badge-info">Enhancement</span></span> <code class="docutils literal notranslate"><span class="pre">fit</span></code> method preserves dtype for numpy.float32 in
<a class="reference internal" href="../modules/generated/sklearn.linear_model.Lars.html#sklearn.linear_model.Lars" title="sklearn.linear_model.Lars"><code class="xref py py-class docutils literal notranslate"><span class="pre">linear_model.Lars</span></code></a>, <a class="reference internal" href="../modules/generated/sklearn.linear_model.LassoLars.html#sklearn.linear_model.LassoLars" title="sklearn.linear_model.LassoLars"><code class="xref py py-class docutils literal notranslate"><span class="pre">linear_model.LassoLars</span></code></a>,
<a class="reference internal" href="../modules/generated/sklearn.linear_model.LassoLars.html#sklearn.linear_model.LassoLars" title="sklearn.linear_model.LassoLars"><code class="xref py py-class docutils literal notranslate"><span class="pre">linear_model.LassoLars</span></code></a>, <a class="reference internal" href="../modules/generated/sklearn.linear_model.LarsCV.html#sklearn.linear_model.LarsCV" title="sklearn.linear_model.LarsCV"><code class="xref py py-class docutils literal notranslate"><span class="pre">linear_model.LarsCV</span></code></a> and
<a class="reference internal" href="../modules/generated/sklearn.linear_model.LassoLarsCV.html#sklearn.linear_model.LassoLarsCV" title="sklearn.linear_model.LassoLarsCV"><code class="xref py py-class docutils literal notranslate"><span class="pre">linear_model.LassoLarsCV</span></code></a>. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/20155">#20155</a> by <a class="reference external" href="https://github.com/takoika">Takeshi Oura</a>.</p></li>
<li><p><span class="raw-html"><span class="badge badge-info">Enhancement</span></span> Validate user-supplied gram matrix passed to linear models
via the <code class="docutils literal notranslate"><span class="pre">precompute</span></code> argument. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/19004">#19004</a> by <a class="reference external" href="https://github.com/amidvidy">Adam Midvidy</a>.</p></li>
<li><p><span class="raw-html"><span class="badge badge-danger">Fix</span></span> <a class="reference internal" href="../modules/generated/sklearn.linear_model.ElasticNet.html#sklearn.linear_model.ElasticNet.fit" title="sklearn.linear_model.ElasticNet.fit"><code class="xref py py-meth docutils literal notranslate"><span class="pre">linear_model.ElasticNet.fit</span></code></a> no longer modifies <code class="docutils literal notranslate"><span class="pre">sample_weight</span></code>
in place. <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/pull/19055">#19055</a> by <a class="reference external" href="https://github.com/thomasjpfan">Thomas Fan</a>.</p></li>
<li><p><span class="raw-html"><span class="badge badge-danger">Fix</span></span> <a class="reference internal" href="../modules/generated/sklearn.linear_model.Lasso.html#sklearn.linear_model.Lasso" title="sklearn.linear_model.Lasso"><code class="xref py py-class docutils literal notranslate"><span class="pre">linear_model.Lasso</span></code></a> and <a class="reference internal" href="../modules/generated/sklearn.linear_model.ElasticNet.html#sklearn.linear_model.ElasticNet" title="sklearn.linear_model.ElasticNet"><code class="xref py py-class docutils literal notranslate"><span class="pre">linear_model.ElasticNet</span></code></a> no