-
Notifications
You must be signed in to change notification settings - Fork 81
/
Copy pathv0.17.html
1152 lines (924 loc) · 89 KB
/
v0.17.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en" data-content_root="../" >
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />
<meta property="og:title" content="Version 0.17" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://scikit-learn/stable/whats_new/v0.17.html" />
<meta property="og:site_name" content="scikit-learn" />
<meta property="og:description" content="Version 0.17.1: February 18, 2016 Changelog: Bug fixes: Upgrade vendored joblib to version 0.9.4 that fixes an important bug in joblib.Parallel that can silently yield to wrong results when working..." />
<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="Version 0.17.1: February 18, 2016 Changelog: Bug fixes: Upgrade vendored joblib to version 0.9.4 that fixes an important bug in joblib.Parallel that can silently yield to wrong results when working..." />
<title>Version 0.17 — scikit-learn 1.6.1 documentation</title>
<script data-cfasync="false">
document.documentElement.dataset.mode = localStorage.getItem("mode") || "";
document.documentElement.dataset.theme = localStorage.getItem("theme") || "";
</script>
<!--
this give us a css class that will be invisible only if js is disabled
-->
<noscript>
<style>
.pst-js-only { display: none !important; }
</style>
</noscript>
<!-- Loaded before other Sphinx assets -->
<link href="../_static/styles/theme.css?digest=8878045cc6db502f8baf" rel="stylesheet" />
<link href="../_static/styles/pydata-sphinx-theme.css?digest=8878045cc6db502f8baf" rel="stylesheet" />
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=a746c00c" />
<link rel="stylesheet" type="text/css" href="../_static/copybutton.css?v=76b2166b" />
<link rel="stylesheet" type="text/css" href="../_static/plot_directive.css" />
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Vibur" />
<link rel="stylesheet" type="text/css" href="../_static/jupyterlite_sphinx.css?v=e3ca86de" />
<link rel="stylesheet" type="text/css" href="../_static/sg_gallery.css?v=d2d258e8" />
<link rel="stylesheet" type="text/css" href="../_static/sg_gallery-binder.css?v=f4aeca0c" />
<link rel="stylesheet" type="text/css" href="../_static/sg_gallery-dataframe.css?v=2082cf3c" />
<link rel="stylesheet" type="text/css" href="../_static/sg_gallery-rendered-html.css?v=1277b6f3" />
<link rel="stylesheet" type="text/css" href="../_static/sphinx-design.min.css?v=95c83b7e" />
<link rel="stylesheet" type="text/css" href="../_static/styles/colors.css?v=cc94ab7d" />
<link rel="stylesheet" type="text/css" href="../_static/styles/custom.css?v=d67e4bb0" />
<!-- So that users can add custom icons -->
<script src="../_static/scripts/fontawesome.js?digest=8878045cc6db502f8baf"></script>
<!-- Pre-loaded scripts that we'll load fully later -->
<link rel="preload" as="script" href="../_static/scripts/bootstrap.js?digest=8878045cc6db502f8baf" />
<link rel="preload" as="script" href="../_static/scripts/pydata-sphinx-theme.js?digest=8878045cc6db502f8baf" />
<script src="../_static/documentation_options.js?v=d6a008b6"></script>
<script src="../_static/doctools.js?v=9a2dae69"></script>
<script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../_static/clipboard.min.js?v=a7894cd8"></script>
<script src="../_static/copybutton.js?v=97f0b27d"></script>
<script src="../_static/jupyterlite_sphinx.js?v=d6bdf5f8"></script>
<script src="../_static/design-tabs.js?v=f930bc37"></script>
<script data-domain="scikit-learn.org" defer="defer" src="https://views.scientific-python.org/js/script.js"></script>
<script>DOCUMENTATION_OPTIONS.pagename = 'whats_new/v0.17';</script>
<script>
DOCUMENTATION_OPTIONS.theme_version = '0.16.1';
DOCUMENTATION_OPTIONS.theme_switcher_json_url = 'https://scikit-learn.org/dev/_static/versions.json';
DOCUMENTATION_OPTIONS.theme_switcher_version_match = '1.6.1';
DOCUMENTATION_OPTIONS.show_version_warning_banner =
true;
</script>
<script src="../_static/scripts/dropdown.js?v=e2048168"></script>
<script src="../_static/scripts/version-switcher.js?v=a6dd8357"></script>
<script src="../_static/scripts/sg_plotly_resize.js?v=eeb41cab"></script>
<link rel="canonical" href="https://scikit-learn.org/stable/whats_new/v0.17.html" />
<link rel="icon" href="../_static/favicon.ico"/>
<link rel="author" title="About these documents" href="../about.html" />
<link rel="search" title="Search" href="../search.html" />
<link rel="next" title="Version 0.16" href="v0.16.html" />
<link rel="prev" title="Version 0.18" href="v0.18.html" />
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta name="docsearch:language" content="en"/>
<meta name="docsearch:version" content="1.6" />
</head>
<body data-bs-spy="scroll" data-bs-target=".bd-toc-nav" data-offset="180" data-bs-root-margin="0px 0px -60%" data-default-mode="">
<div id="pst-skip-link" class="skip-link d-print-none"><a href="#main-content">Skip to main content</a></div>
<div id="pst-scroll-pixel-helper"></div>
<button type="button" class="btn rounded-pill" id="pst-back-to-top">
<i class="fa-solid fa-arrow-up"></i>Back to top</button>
<dialog id="pst-search-dialog">
<form class="bd-search d-flex align-items-center"
action="../search.html"
method="get">
<i class="fa-solid fa-magnifying-glass"></i>
<input type="search"
class="form-control"
name="q"
placeholder="Search the docs ..."
aria-label="Search the docs ..."
autocomplete="off"
autocorrect="off"
autocapitalize="off"
spellcheck="false"/>
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</dialog>
<div class="pst-async-banner-revealer d-none">
<aside id="bd-header-version-warning" class="d-none d-print-none" aria-label="Version warning"></aside>
</div>
<header class="bd-header navbar navbar-expand-lg bd-navbar d-print-none">
<div class="bd-header__inner bd-page-width">
<button class="pst-navbar-icon sidebar-toggle primary-toggle" aria-label="Site navigation">
<span class="fa-solid fa-bars"></span>
</button>
<div class=" navbar-header-items__start">
<div class="navbar-item">
<a class="navbar-brand logo" href="../index.html">
<img src="../_static/scikit-learn-logo-small.png" class="logo__image only-light" alt="scikit-learn homepage"/>
<img src="../_static/scikit-learn-logo-small.png" class="logo__image only-dark pst-js-only" alt="scikit-learn homepage"/>
</a></div>
</div>
<div class=" navbar-header-items">
<div class="me-auto navbar-header-items__center">
<div class="navbar-item">
<nav>
<ul class="bd-navbar-elements navbar-nav">
<li class="nav-item ">
<a class="nav-link nav-internal" href="../install.html">
Install
</a>
</li>
<li class="nav-item ">
<a class="nav-link nav-internal" href="../user_guide.html">
User Guide
</a>
</li>
<li class="nav-item ">
<a class="nav-link nav-internal" href="../api/index.html">
API
</a>
</li>
<li class="nav-item ">
<a class="nav-link nav-internal" href="../auto_examples/index.html">
Examples
</a>
</li>
<li class="nav-item ">
<a class="nav-link nav-external" href="https://blog.scikit-learn.org/">
Community
</a>
</li>
<li class="nav-item dropdown">
<button class="btn dropdown-toggle nav-item" type="button"
data-bs-toggle="dropdown" aria-expanded="false"
aria-controls="pst-nav-more-links">
More
</button>
<ul id="pst-nav-more-links" class="dropdown-menu">
<li class=" ">
<a class="nav-link dropdown-item nav-internal" href="../getting_started.html">
Getting Started
</a>
</li>
<li class=" current active">
<a class="nav-link dropdown-item nav-internal" href="../whats_new.html">
Release History
</a>
</li>
<li class=" ">
<a class="nav-link dropdown-item nav-internal" href="../glossary.html">
Glossary
</a>
</li>
<li class=" ">
<a class="nav-link dropdown-item nav-external" href="https://scikit-learn.org/dev/developers/index.html">
Development
</a>
</li>
<li class=" ">
<a class="nav-link dropdown-item nav-internal" href="../faq.html">
FAQ
</a>
</li>
<li class=" ">
<a class="nav-link dropdown-item nav-internal" href="../support.html">
Support
</a>
</li>
<li class=" ">
<a class="nav-link dropdown-item nav-internal" href="../related_projects.html">
Related Projects
</a>
</li>
<li class=" ">
<a class="nav-link dropdown-item nav-internal" href="../roadmap.html">
Roadmap
</a>
</li>
<li class=" ">
<a class="nav-link dropdown-item nav-internal" href="../governance.html">
Governance
</a>
</li>
<li class=" ">
<a class="nav-link dropdown-item nav-internal" href="../about.html">
About us
</a>
</li>
</ul>
</li>
</ul>
</nav></div>
</div>
<div class="navbar-header-items__end">
<div class="navbar-item navbar-persistent--container">
<button class="btn btn-sm pst-navbar-icon search-button search-button__button pst-js-only" title="Search" aria-label="Search" data-bs-placement="bottom" data-bs-toggle="tooltip">
<i class="fa-solid fa-magnifying-glass fa-lg"></i>
</button>
</div>
<div class="navbar-item">
<button class="btn btn-sm nav-link pst-navbar-icon theme-switch-button pst-js-only" aria-label="Color mode" data-bs-title="Color mode" data-bs-placement="bottom" data-bs-toggle="tooltip">
<i class="theme-switch fa-solid fa-sun fa-lg" data-mode="light" title="Light"></i>
<i class="theme-switch fa-solid fa-moon fa-lg" data-mode="dark" title="Dark"></i>
<i class="theme-switch fa-solid fa-circle-half-stroke fa-lg" data-mode="auto" title="System Settings"></i>
</button></div>
<div class="navbar-item"><ul class="navbar-icon-links"
aria-label="Icon Links">
<li class="nav-item">
<a href="https://github.com/scikit-learn/scikit-learn" title="GitHub" class="nav-link pst-navbar-icon" rel="noopener" target="_blank" data-bs-toggle="tooltip" data-bs-placement="bottom"><i class="fa-brands fa-square-github fa-lg" aria-hidden="true"></i>
<span class="sr-only">GitHub</span></a>
</li>
</ul></div>
<div class="navbar-item">
<div class="version-switcher__container dropdown pst-js-only">
<button id="pst-version-switcher-button-2"
type="button"
class="version-switcher__button btn btn-sm dropdown-toggle"
data-bs-toggle="dropdown"
aria-haspopup="listbox"
aria-controls="pst-version-switcher-list-2"
aria-label="Version switcher list"
>
Choose version <!-- this text may get changed later by javascript -->
<span class="caret"></span>
</button>
<div id="pst-version-switcher-list-2"
class="version-switcher__menu dropdown-menu list-group-flush py-0"
role="listbox" aria-labelledby="pst-version-switcher-button-2">
<!-- dropdown will be populated by javascript on page load -->
</div>
</div></div>
</div>
</div>
<div class="navbar-persistent--mobile">
<button class="btn btn-sm pst-navbar-icon search-button search-button__button pst-js-only" title="Search" aria-label="Search" data-bs-placement="bottom" data-bs-toggle="tooltip">
<i class="fa-solid fa-magnifying-glass fa-lg"></i>
</button>
</div>
<button class="pst-navbar-icon sidebar-toggle secondary-toggle" aria-label="On this page">
<span class="fa-solid fa-outdent"></span>
</button>
</div>
</header>
<div class="bd-container">
<div class="bd-container__inner bd-page-width">
<dialog id="pst-primary-sidebar-modal"></dialog>
<div id="pst-primary-sidebar" class="bd-sidebar-primary bd-sidebar">
<div class="sidebar-header-items sidebar-primary__section">
<div class="sidebar-header-items__center">
<div class="navbar-item">
<nav>
<ul class="bd-navbar-elements navbar-nav">
<li class="nav-item ">
<a class="nav-link nav-internal" href="../install.html">
Install
</a>
</li>
<li class="nav-item ">
<a class="nav-link nav-internal" href="../user_guide.html">
User Guide
</a>
</li>
<li class="nav-item ">
<a class="nav-link nav-internal" href="../api/index.html">
API
</a>
</li>
<li class="nav-item ">
<a class="nav-link nav-internal" href="../auto_examples/index.html">
Examples
</a>
</li>
<li class="nav-item ">
<a class="nav-link nav-external" href="https://blog.scikit-learn.org/">
Community
</a>
</li>
<li class="nav-item ">
<a class="nav-link nav-internal" href="../getting_started.html">
Getting Started
</a>
</li>
<li class="nav-item current active">
<a class="nav-link nav-internal" href="../whats_new.html">
Release History
</a>
</li>
<li class="nav-item ">
<a class="nav-link nav-internal" href="../glossary.html">
Glossary
</a>
</li>
<li class="nav-item ">
<a class="nav-link nav-external" href="https://scikit-learn.org/dev/developers/index.html">
Development
</a>
</li>
<li class="nav-item ">
<a class="nav-link nav-internal" href="../faq.html">
FAQ
</a>
</li>
<li class="nav-item ">
<a class="nav-link nav-internal" href="../support.html">
Support
</a>
</li>
<li class="nav-item ">
<a class="nav-link nav-internal" href="../related_projects.html">
Related Projects
</a>
</li>
<li class="nav-item ">
<a class="nav-link nav-internal" href="../roadmap.html">
Roadmap
</a>
</li>
<li class="nav-item ">
<a class="nav-link nav-internal" href="../governance.html">
Governance
</a>
</li>
<li class="nav-item ">
<a class="nav-link nav-internal" href="../about.html">
About us
</a>
</li>
</ul>
</nav></div>
</div>
<div class="sidebar-header-items__end">
<div class="navbar-item">
<button class="btn btn-sm nav-link pst-navbar-icon theme-switch-button pst-js-only" aria-label="Color mode" data-bs-title="Color mode" data-bs-placement="bottom" data-bs-toggle="tooltip">
<i class="theme-switch fa-solid fa-sun fa-lg" data-mode="light" title="Light"></i>
<i class="theme-switch fa-solid fa-moon fa-lg" data-mode="dark" title="Dark"></i>
<i class="theme-switch fa-solid fa-circle-half-stroke fa-lg" data-mode="auto" title="System Settings"></i>
</button></div>
<div class="navbar-item"><ul class="navbar-icon-links"
aria-label="Icon Links">
<li class="nav-item">
<a href="https://github.com/scikit-learn/scikit-learn" title="GitHub" class="nav-link pst-navbar-icon" rel="noopener" target="_blank" data-bs-toggle="tooltip" data-bs-placement="bottom"><i class="fa-brands fa-square-github fa-lg" aria-hidden="true"></i>
<span class="sr-only">GitHub</span></a>
</li>
</ul></div>
<div class="navbar-item">
<div class="version-switcher__container dropdown pst-js-only">
<button id="pst-version-switcher-button-3"
type="button"
class="version-switcher__button btn btn-sm dropdown-toggle"
data-bs-toggle="dropdown"
aria-haspopup="listbox"
aria-controls="pst-version-switcher-list-3"
aria-label="Version switcher list"
>
Choose version <!-- this text may get changed later by javascript -->
<span class="caret"></span>
</button>
<div id="pst-version-switcher-list-3"
class="version-switcher__menu dropdown-menu list-group-flush py-0"
role="listbox" aria-labelledby="pst-version-switcher-button-3">
<!-- dropdown will be populated by javascript on page load -->
</div>
</div></div>
</div>
</div>
<div class="sidebar-primary-items__start sidebar-primary__section">
<div class="sidebar-primary-item">
<nav class="bd-docs-nav bd-links"
aria-label="Section Navigation">
<p class="bd-links__title" role="heading" aria-level="1">Section Navigation</p>
<div class="bd-toc-item navbar-nav"><ul class="current nav bd-sidenav">
<li class="toctree-l1"><a class="reference internal" href="v1.6.html">Version 1.6</a></li>
<li class="toctree-l1"><a class="reference internal" href="v1.5.html">Version 1.5</a></li>
<li class="toctree-l1"><a class="reference internal" href="v1.4.html">Version 1.4</a></li>
<li class="toctree-l1"><a class="reference internal" href="v1.3.html">Version 1.3</a></li>
<li class="toctree-l1"><a class="reference internal" href="v1.2.html">Version 1.2</a></li>
<li class="toctree-l1"><a class="reference internal" href="v1.1.html">Version 1.1</a></li>
<li class="toctree-l1"><a class="reference internal" href="v1.0.html">Version 1.0</a></li>
<li class="toctree-l1"><a class="reference internal" href="v0.24.html">Version 0.24</a></li>
<li class="toctree-l1"><a class="reference internal" href="v0.23.html">Version 0.23</a></li>
<li class="toctree-l1"><a class="reference internal" href="v0.22.html">Version 0.22</a></li>
<li class="toctree-l1"><a class="reference internal" href="v0.21.html">Version 0.21</a></li>
<li class="toctree-l1"><a class="reference internal" href="v0.20.html">Version 0.20</a></li>
<li class="toctree-l1"><a class="reference internal" href="v0.19.html">Version 0.19</a></li>
<li class="toctree-l1"><a class="reference internal" href="v0.18.html">Version 0.18</a></li>
<li class="toctree-l1 current active"><a class="current reference internal" href="#">Version 0.17</a></li>
<li class="toctree-l1"><a class="reference internal" href="v0.16.html">Version 0.16</a></li>
<li class="toctree-l1"><a class="reference internal" href="v0.15.html">Version 0.15</a></li>
<li class="toctree-l1"><a class="reference internal" href="v0.14.html">Version 0.14</a></li>
<li class="toctree-l1"><a class="reference internal" href="v0.13.html">Version 0.13</a></li>
<li class="toctree-l1"><a class="reference internal" href="older_versions.html">Older Versions</a></li>
</ul>
</div>
</nav></div>
</div>
<div class="sidebar-primary-items__end sidebar-primary__section">
</div>
</div>
<main id="main-content" class="bd-main" role="main">
<div class="bd-content">
<div class="bd-article-container">
<div class="bd-header-article d-print-none">
<div class="header-article-items header-article__inner">
<div class="header-article-items__start">
<div class="header-article-item">
<nav aria-label="Breadcrumb" class="d-print-none">
<ul class="bd-breadcrumbs">
<li class="breadcrumb-item breadcrumb-home">
<a href="../index.html" class="nav-link" aria-label="Home">
<i class="fa-solid fa-home"></i>
</a>
</li>
<li class="breadcrumb-item"><a href="../whats_new.html" class="nav-link">Release History</a></li>
<li class="breadcrumb-item active" aria-current="page"><span class="ellipsis">Version 0.17</span></li>
</ul>
</nav>
</div>
</div>
</div>
</div>
<div id="searchbox"></div>
<article class="bd-article">
<section id="version-0-17">
<h1>Version 0.17<a class="headerlink" href="#version-0-17" title="Link to this heading">#</a></h1>
<section id="version-0-17-1">
<span id="changes-0-17-1"></span><h2>Version 0.17.1<a class="headerlink" href="#version-0-17-1" title="Link to this heading">#</a></h2>
<p><strong>February 18, 2016</strong></p>
<section id="changelog">
<h3>Changelog<a class="headerlink" href="#changelog" title="Link to this heading">#</a></h3>
<section id="bug-fixes">
<h4>Bug fixes<a class="headerlink" href="#bug-fixes" title="Link to this heading">#</a></h4>
<ul class="simple">
<li><p>Upgrade vendored joblib to version 0.9.4 that fixes an important bug in
<code class="docutils literal notranslate"><span class="pre">joblib.Parallel</span></code> that can silently yield to wrong results when working
on datasets larger than 1MB:
<a class="github reference external" href="https://github.com/joblib/joblib/blob/0.9.4/CHANGES.rst">joblib/joblib</a></p></li>
<li><p>Fixed reading of Bunch pickles generated with scikit-learn
version <= 0.16. This can affect users who have already
downloaded a dataset with scikit-learn 0.16 and are loading it
with scikit-learn 0.17. See <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/issues/6196">#6196</a> for
how this affected <a class="reference internal" href="../modules/generated/sklearn.datasets.fetch_20newsgroups.html#sklearn.datasets.fetch_20newsgroups" title="sklearn.datasets.fetch_20newsgroups"><code class="xref py py-func docutils literal notranslate"><span class="pre">datasets.fetch_20newsgroups</span></code></a>. By <a class="reference external" href="https://github.com/lesteve">Loic
Esteve</a>.</p></li>
<li><p>Fixed a bug that prevented using ROC AUC score to perform grid search on
several CPU / cores on large arrays. See <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/issues/6147">#6147</a>
By <a class="reference external" href="https://bsky.app/profile/ogrisel.bsky.social">Olivier Grisel</a>.</p></li>
<li><p>Fixed a bug that prevented to properly set the <code class="docutils literal notranslate"><span class="pre">presort</span></code> parameter
in <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>. See <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/issues/5857">#5857</a>
By Andrew McCulloh.</p></li>
<li><p>Fixed a joblib error when evaluating the perplexity of a
<a class="reference internal" href="../modules/generated/sklearn.decomposition.LatentDirichletAllocation.html#sklearn.decomposition.LatentDirichletAllocation" title="sklearn.decomposition.LatentDirichletAllocation"><code class="xref py py-class docutils literal notranslate"><span class="pre">decomposition.LatentDirichletAllocation</span></code></a> model. See <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/issues/6258">#6258</a>
By Chyi-Kwei Yau.</p></li>
</ul>
</section>
</section>
</section>
<section id="changes-0-17">
<span id="id1"></span><h2>Version 0.17<a class="headerlink" href="#changes-0-17" title="Link to this heading">#</a></h2>
<p><strong>November 5, 2015</strong></p>
<section id="id2">
<h3>Changelog<a class="headerlink" href="#id2" title="Link to this heading">#</a></h3>
<section id="new-features">
<h4>New features<a class="headerlink" href="#new-features" title="Link to this heading">#</a></h4>
<ul class="simple">
<li><p>All the Scaler classes but <a class="reference internal" href="../modules/generated/sklearn.preprocessing.RobustScaler.html#sklearn.preprocessing.RobustScaler" title="sklearn.preprocessing.RobustScaler"><code class="xref py py-class docutils literal notranslate"><span class="pre">preprocessing.RobustScaler</span></code></a> can be fitted online by
calling <code class="docutils literal notranslate"><span class="pre">partial_fit</span></code>. By <a class="reference external" href="https://github.com/giorgiop">Giorgio Patrini</a>.</p></li>
<li><p>The new class <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> implements a
“majority rule” / “soft voting” ensemble classifier to combine
estimators for classification. By <a class="reference external" href="https://sebastianraschka.com/">Sebastian Raschka</a>.</p></li>
<li><p>The new class <a class="reference internal" href="../modules/generated/sklearn.preprocessing.RobustScaler.html#sklearn.preprocessing.RobustScaler" title="sklearn.preprocessing.RobustScaler"><code class="xref py py-class docutils literal notranslate"><span class="pre">preprocessing.RobustScaler</span></code></a> provides an
alternative to <a class="reference internal" href="../modules/generated/sklearn.preprocessing.StandardScaler.html#sklearn.preprocessing.StandardScaler" title="sklearn.preprocessing.StandardScaler"><code class="xref py py-class docutils literal notranslate"><span class="pre">preprocessing.StandardScaler</span></code></a> for feature-wise
centering and range normalization that is robust to outliers.
By <a class="reference external" href="https://github.com/untom">Thomas Unterthiner</a>.</p></li>
<li><p>The new class <a class="reference internal" href="../modules/generated/sklearn.preprocessing.MaxAbsScaler.html#sklearn.preprocessing.MaxAbsScaler" title="sklearn.preprocessing.MaxAbsScaler"><code class="xref py py-class docutils literal notranslate"><span class="pre">preprocessing.MaxAbsScaler</span></code></a> provides an
alternative to <a class="reference internal" href="../modules/generated/sklearn.preprocessing.MinMaxScaler.html#sklearn.preprocessing.MinMaxScaler" title="sklearn.preprocessing.MinMaxScaler"><code class="xref py py-class docutils literal notranslate"><span class="pre">preprocessing.MinMaxScaler</span></code></a> for feature-wise
range normalization when the data is already centered or sparse.
By <a class="reference external" href="https://github.com/untom">Thomas Unterthiner</a>.</p></li>
<li><p>The new class <a class="reference internal" href="../modules/generated/sklearn.preprocessing.FunctionTransformer.html#sklearn.preprocessing.FunctionTransformer" title="sklearn.preprocessing.FunctionTransformer"><code class="xref py py-class docutils literal notranslate"><span class="pre">preprocessing.FunctionTransformer</span></code></a> turns a Python
function into a <code class="docutils literal notranslate"><span class="pre">Pipeline</span></code>-compatible transformer object.
By Joe Jevnik.</p></li>
<li><p>The new classes <code class="docutils literal notranslate"><span class="pre">cross_validation.LabelKFold</span></code> and
<code class="docutils literal notranslate"><span class="pre">cross_validation.LabelShuffleSplit</span></code> generate train-test folds,
respectively similar to <code class="docutils literal notranslate"><span class="pre">cross_validation.KFold</span></code> and
<code class="docutils literal notranslate"><span class="pre">cross_validation.ShuffleSplit</span></code>, except that the folds are
conditioned on a label array. By <a class="reference external" href="https://bmcfee.github.io">Brian McFee</a>, <a class="reference external" href="https://github.com/JeanKossaifi">Jean
Kossaifi</a> and <a class="reference external" href="http://www.montefiore.ulg.ac.be/~glouppe/">Gilles Louppe</a>.</p></li>
<li><p><a class="reference internal" href="../modules/generated/sklearn.decomposition.LatentDirichletAllocation.html#sklearn.decomposition.LatentDirichletAllocation" title="sklearn.decomposition.LatentDirichletAllocation"><code class="xref py py-class docutils literal notranslate"><span class="pre">decomposition.LatentDirichletAllocation</span></code></a> implements the Latent
Dirichlet Allocation topic model with online variational
inference. By <a class="reference external" href="https://github.com/chyikwei">Chyi-Kwei Yau</a>, with code based on an implementation
by Matt Hoffman. (<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/issues/3659">#3659</a>)</p></li>
<li><p>The new solver <code class="docutils literal notranslate"><span class="pre">sag</span></code> implements a Stochastic Average Gradient descent
and is available in both <a class="reference internal" href="../modules/generated/sklearn.linear_model.LogisticRegression.html#sklearn.linear_model.LogisticRegression" title="sklearn.linear_model.LogisticRegression"><code class="xref py py-class docutils literal notranslate"><span class="pre">linear_model.LogisticRegression</span></code></a> and
<a class="reference internal" href="../modules/generated/sklearn.linear_model.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>. This solver is very efficient for large
datasets. By <a class="reference external" href="https://github.com/dsullivan7">Danny Sullivan</a> and <a class="reference external" href="https://github.com/TomDLT">Tom Dupre la Tour</a>.
(<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/issues/4738">#4738</a>)</p></li>
<li><p>The new solver <code class="docutils literal notranslate"><span class="pre">cd</span></code> implements a Coordinate Descent in
<a class="reference internal" href="../modules/generated/sklearn.decomposition.NMF.html#sklearn.decomposition.NMF" title="sklearn.decomposition.NMF"><code class="xref py py-class docutils literal notranslate"><span class="pre">decomposition.NMF</span></code></a>. Previous solver based on Projected Gradient is
still available setting new parameter <code class="docutils literal notranslate"><span class="pre">solver</span></code> to <code class="docutils literal notranslate"><span class="pre">pg</span></code>, but is
deprecated and will be removed in 0.19, along with
<code class="docutils literal notranslate"><span class="pre">decomposition.ProjectedGradientNMF</span></code> and parameters <code class="docutils literal notranslate"><span class="pre">sparseness</span></code>,
<code class="docutils literal notranslate"><span class="pre">eta</span></code>, <code class="docutils literal notranslate"><span class="pre">beta</span></code> and <code class="docutils literal notranslate"><span class="pre">nls_max_iter</span></code>. New parameters <code class="docutils literal notranslate"><span class="pre">alpha</span></code> and
<code class="docutils literal notranslate"><span class="pre">l1_ratio</span></code> control L1 and L2 regularization, and <code class="docutils literal notranslate"><span class="pre">shuffle</span></code> adds a
shuffling step in the <code class="docutils literal notranslate"><span class="pre">cd</span></code> solver.
By <a class="reference external" href="https://github.com/TomDLT">Tom Dupre la Tour</a> and <a class="reference external" href="http://www.mblondel.org">Mathieu Blondel</a>.</p></li>
</ul>
</section>
<section id="enhancements">
<h4>Enhancements<a class="headerlink" href="#enhancements" title="Link to this heading">#</a></h4>
<ul class="simple">
<li><p><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 supports approximate optimization via the
Barnes-Hut method, leading to much faster fitting. By Christopher Erick Moody.
(<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/issues/4025">#4025</a>)</p></li>
<li><p><a class="reference internal" href="../modules/generated/sklearn.cluster.MeanShift.html#sklearn.cluster.MeanShift" title="sklearn.cluster.MeanShift"><code class="xref py py-class docutils literal notranslate"><span class="pre">cluster.MeanShift</span></code></a> now supports parallel execution,
as implemented in the <code class="docutils literal notranslate"><span class="pre">mean_shift</span></code> function. By <a class="reference external" href="https://github.com/martinosorb">Martino
Sorbaro</a>.</p></li>
<li><p><a class="reference internal" href="../modules/generated/sklearn.naive_bayes.GaussianNB.html#sklearn.naive_bayes.GaussianNB" title="sklearn.naive_bayes.GaussianNB"><code class="xref py py-class docutils literal notranslate"><span class="pre">naive_bayes.GaussianNB</span></code></a> now supports fitting with <code class="docutils literal notranslate"><span class="pre">sample_weight</span></code>.
By <a class="reference external" href="https://jmetzen.github.io/">Jan Hendrik Metzen</a>.</p></li>
<li><p><a class="reference internal" href="../modules/generated/sklearn.dummy.DummyClassifier.html#sklearn.dummy.DummyClassifier" title="sklearn.dummy.DummyClassifier"><code class="xref py py-class docutils literal notranslate"><span class="pre">dummy.DummyClassifier</span></code></a> now supports a prior fitting strategy.
By <a class="reference external" href="http://www.ajoly.org">Arnaud Joly</a>.</p></li>
<li><p>Added a <code class="docutils literal notranslate"><span class="pre">fit_predict</span></code> method for <code class="docutils literal notranslate"><span class="pre">mixture.GMM</span></code> and subclasses.
By <a class="reference external" href="https://github.com/clorenz7">Cory Lorenz</a>.</p></li>
<li><p>Added the <a class="reference internal" href="../modules/generated/sklearn.metrics.label_ranking_loss.html#sklearn.metrics.label_ranking_loss" title="sklearn.metrics.label_ranking_loss"><code class="xref py py-func docutils literal notranslate"><span class="pre">metrics.label_ranking_loss</span></code></a> metric.
By <a class="reference external" href="http://www.ajoly.org">Arnaud Joly</a>.</p></li>
<li><p>Added the <a class="reference internal" href="../modules/generated/sklearn.metrics.cohen_kappa_score.html#sklearn.metrics.cohen_kappa_score" title="sklearn.metrics.cohen_kappa_score"><code class="xref py py-func docutils literal notranslate"><span class="pre">metrics.cohen_kappa_score</span></code></a> metric.</p></li>
<li><p>Added a <code class="docutils literal notranslate"><span class="pre">warm_start</span></code> constructor parameter to the bagging ensemble
models to increase the size of the ensemble. By <a class="reference external" href="https://github.com/betatim">Tim Head</a>.</p></li>
<li><p>Added option to use multi-output regression metrics without averaging.
By Konstantin Shmelkov and <a class="reference external" href="https://github.com/eickenberg">Michael Eickenberg</a>.</p></li>
<li><p>Added <code class="docutils literal notranslate"><span class="pre">stratify</span></code> option to <code class="docutils literal notranslate"><span class="pre">cross_validation.train_test_split</span></code>
for stratified splitting. By Miroslav Batchkarov.</p></li>
<li><p>The <a class="reference internal" href="../modules/generated/sklearn.tree.export_graphviz.html#sklearn.tree.export_graphviz" title="sklearn.tree.export_graphviz"><code class="xref py py-func docutils literal notranslate"><span class="pre">tree.export_graphviz</span></code></a> function now supports aesthetic
improvements for <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>, including options for coloring nodes
by their majority class or impurity, showing variable names, and using
node proportions instead of raw sample counts. By <a class="reference external" href="http://trevorstephens.com/">Trevor Stephens</a>.</p></li>
<li><p>Improved speed of <code class="docutils literal notranslate"><span class="pre">newton-cg</span></code> solver in
<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>, by avoiding loss computation.
By <a class="reference external" href="http://www.mblondel.org">Mathieu Blondel</a> and <a class="reference external" href="https://github.com/TomDLT">Tom Dupre la Tour</a>.</p></li>
<li><p>The <code class="docutils literal notranslate"><span class="pre">class_weight="auto"</span></code> heuristic in classifiers supporting
<code class="docutils literal notranslate"><span class="pre">class_weight</span></code> was deprecated and replaced by the <code class="docutils literal notranslate"><span class="pre">class_weight="balanced"</span></code>
option, which has a simpler formula and interpretation.
By <a class="reference external" href="https://dirichlet.net/">Hanna Wallach</a> and <a class="reference external" href="https://amueller.github.io/">Andreas Müller</a>.</p></li>
<li><p>Add <code class="docutils literal notranslate"><span class="pre">class_weight</span></code> parameter to automatically weight samples by class
frequency for <a class="reference internal" href="../modules/generated/sklearn.linear_model.PassiveAggressiveClassifier.html#sklearn.linear_model.PassiveAggressiveClassifier" title="sklearn.linear_model.PassiveAggressiveClassifier"><code class="xref py py-class docutils literal notranslate"><span class="pre">linear_model.PassiveAggressiveClassifier</span></code></a>. By
<a class="reference external" href="http://trevorstephens.com/">Trevor Stephens</a>.</p></li>
<li><p>Added backlinks from the API reference pages to the user guide. By
<a class="reference external" href="https://amueller.github.io/">Andreas Müller</a>.</p></li>
<li><p>The <code class="docutils literal notranslate"><span class="pre">labels</span></code> parameter to <a class="reference internal" href="../modules/generated/sklearn.metrics.f1_score.html#sklearn.metrics.f1_score" title="sklearn.metrics.f1_score"><code class="xref py py-func docutils literal notranslate"><span class="pre">sklearn.metrics.f1_score</span></code></a>,
<a class="reference internal" href="../modules/generated/sklearn.metrics.fbeta_score.html#sklearn.metrics.fbeta_score" title="sklearn.metrics.fbeta_score"><code class="xref py py-func docutils literal notranslate"><span class="pre">sklearn.metrics.fbeta_score</span></code></a>,
<a class="reference internal" href="../modules/generated/sklearn.metrics.recall_score.html#sklearn.metrics.recall_score" title="sklearn.metrics.recall_score"><code class="xref py py-func docutils literal notranslate"><span class="pre">sklearn.metrics.recall_score</span></code></a> and
<a class="reference internal" href="../modules/generated/sklearn.metrics.precision_score.html#sklearn.metrics.precision_score" title="sklearn.metrics.precision_score"><code class="xref py py-func docutils literal notranslate"><span class="pre">sklearn.metrics.precision_score</span></code></a> has been extended.
It is now possible to ignore one or more labels, such as where
a multiclass problem has a majority class to ignore. By <a class="reference external" href="https://joelnothman.com/">Joel Nothman</a>.</p></li>
<li><p>Add <code class="docutils literal notranslate"><span class="pre">sample_weight</span></code> support to <a class="reference internal" href="../modules/generated/sklearn.linear_model.RidgeClassifier.html#sklearn.linear_model.RidgeClassifier" title="sklearn.linear_model.RidgeClassifier"><code class="xref py py-class docutils literal notranslate"><span class="pre">linear_model.RidgeClassifier</span></code></a>.
By <a class="reference external" href="http://trevorstephens.com/">Trevor Stephens</a>.</p></li>
<li><p>Provide an option for sparse output from
<a class="reference internal" href="../modules/generated/sklearn.metrics.pairwise.cosine_similarity.html#sklearn.metrics.pairwise.cosine_similarity" title="sklearn.metrics.pairwise.cosine_similarity"><code class="xref py py-func docutils literal notranslate"><span class="pre">sklearn.metrics.pairwise.cosine_similarity</span></code></a>. By
<a class="reference external" href="https://github.com/jaidevd">Jaidev Deshpande</a>.</p></li>
<li><p>Add <a class="reference internal" href="../modules/generated/sklearn.preprocessing.minmax_scale.html#sklearn.preprocessing.minmax_scale" title="sklearn.preprocessing.minmax_scale"><code class="xref py py-func docutils literal notranslate"><span class="pre">preprocessing.minmax_scale</span></code></a> to provide a function interface for
<a class="reference internal" href="../modules/generated/sklearn.preprocessing.MinMaxScaler.html#sklearn.preprocessing.MinMaxScaler" title="sklearn.preprocessing.MinMaxScaler"><code class="xref py py-class docutils literal notranslate"><span class="pre">preprocessing.MinMaxScaler</span></code></a>. By <a class="reference external" href="https://github.com/untom">Thomas Unterthiner</a>.</p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">dump_svmlight_file</span></code> now handles multi-label datasets.
By Chih-Wei Chang.</p></li>
<li><p>RCV1 dataset loader (<a class="reference internal" href="../modules/generated/sklearn.datasets.fetch_rcv1.html#sklearn.datasets.fetch_rcv1" title="sklearn.datasets.fetch_rcv1"><code class="xref py py-func docutils literal notranslate"><span class="pre">sklearn.datasets.fetch_rcv1</span></code></a>).
By <a class="reference external" href="https://github.com/TomDLT">Tom Dupre la Tour</a>.</p></li>
<li><p>The “Wisconsin Breast Cancer” classical two-class classification dataset
is now included in scikit-learn, available with
<a class="reference internal" href="../modules/generated/sklearn.datasets.load_breast_cancer.html#sklearn.datasets.load_breast_cancer" title="sklearn.datasets.load_breast_cancer"><code class="xref py py-func docutils literal notranslate"><span class="pre">datasets.load_breast_cancer</span></code></a>.</p></li>
<li><p>Upgraded to joblib 0.9.3 to benefit from the new automatic batching of
short tasks. This makes it possible for scikit-learn to benefit from
parallelism when many very short tasks are executed in parallel, for
instance by the <code class="docutils literal notranslate"><span class="pre">grid_search.GridSearchCV</span></code> meta-estimator
with <code class="docutils literal notranslate"><span class="pre">n_jobs</span> <span class="pre">></span> <span class="pre">1</span></code> used with a large grid of parameters on a small
dataset. By <a class="reference external" href="https://vene.ro/">Vlad Niculae</a>, <a class="reference external" href="https://bsky.app/profile/ogrisel.bsky.social">Olivier Grisel</a> and <a class="reference external" href="https://github.com/lesteve">Loic Esteve</a>.</p></li>
<li><p>For more details about changes in joblib 0.9.3 see the release notes:
<a class="github reference external" href="https://github.com/joblib/joblib/blob/master/CHANGES.rst#release-093">joblib/joblib</a></p></li>
<li><p>Improved speed (3 times per iteration) of
<code class="docutils literal notranslate"><span class="pre">decomposition.DictLearning</span></code> with coordinate descent method
from <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>. By <a class="reference external" href="https://github.com/arthurmensch">Arthur Mensch</a>.</p></li>
<li><p>Parallel processing (threaded) for queries of nearest neighbors
(using the ball-tree) by Nikolay Mayorov.</p></li>
<li><p>Allow <a class="reference internal" href="../modules/generated/sklearn.datasets.make_multilabel_classification.html#sklearn.datasets.make_multilabel_classification" title="sklearn.datasets.make_multilabel_classification"><code class="xref py py-func docutils literal notranslate"><span class="pre">datasets.make_multilabel_classification</span></code></a> to output
a sparse <code class="docutils literal notranslate"><span class="pre">y</span></code>. By Kashif Rasul.</p></li>
<li><p><a class="reference internal" href="../modules/generated/sklearn.cluster.DBSCAN.html#sklearn.cluster.DBSCAN" title="sklearn.cluster.DBSCAN"><code class="xref py py-class docutils literal notranslate"><span class="pre">cluster.DBSCAN</span></code></a> now accepts a sparse matrix of precomputed
distances, allowing memory-efficient distance precomputation. By
<a class="reference external" href="https://joelnothman.com/">Joel Nothman</a>.</p></li>
<li><p><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> now exposes an <code class="docutils literal notranslate"><span class="pre">apply</span></code> method
for retrieving the leaf indices samples are predicted as. By
<a class="reference external" href="https://github.com/galv">Daniel Galvez</a> and <a class="reference external" href="http://www.montefiore.ulg.ac.be/~glouppe/">Gilles Louppe</a>.</p></li>
<li><p>Speed up decision tree regressors, random forest regressors, extra trees
regressors and gradient boosting estimators by computing a proxy
of the impurity improvement during the tree growth. The proxy quantity is
such that the split that maximizes this value also maximizes the impurity
improvement. By <a class="reference external" href="http://www.ajoly.org">Arnaud Joly</a>, <a class="reference external" href="https://github.com/jmschrei">Jacob Schreiber</a>
and <a class="reference external" href="http://www.montefiore.ulg.ac.be/~glouppe/">Gilles Louppe</a>.</p></li>
<li><p>Speed up tree based methods by reducing the number of computations needed
when computing the impurity measure taking into account linear
relationship of the computed statistics. The effect is particularly
visible with extra trees and on datasets with categorical or sparse
features. By <a class="reference external" href="http://www.ajoly.org">Arnaud Joly</a>.</p></li>
<li><p><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> now expose an <code class="docutils literal notranslate"><span class="pre">apply</span></code>
method for retrieving the leaf indices each sample ends up in under
each try. By <a class="reference external" href="https://github.com/jmschrei">Jacob Schreiber</a>.</p></li>
<li><p>Add <code class="docutils literal notranslate"><span class="pre">sample_weight</span></code> support to <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-class docutils literal notranslate"><span class="pre">linear_model.LinearRegression</span></code></a>.
By Sonny Hu. (<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/issues/#4881">##4881</a>)</p></li>
<li><p>Add <code class="docutils literal notranslate"><span class="pre">n_iter_without_progress</span></code> to <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> to control
the stopping criterion. By Santi Villalba. (<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/issues/5186">#5186</a>)</p></li>
<li><p>Added optional parameter <code class="docutils literal notranslate"><span class="pre">random_state</span></code> in <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>
, to set the seed of the pseudo random generator used in <code class="docutils literal notranslate"><span class="pre">sag</span></code> solver. By <a class="reference external" href="https://github.com/TomDLT">Tom Dupre la Tour</a>.</p></li>
<li><p>Added optional parameter <code class="docutils literal notranslate"><span class="pre">warm_start</span></code> in
<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>. If set to True, the solvers
<code class="docutils literal notranslate"><span class="pre">lbfgs</span></code>, <code class="docutils literal notranslate"><span class="pre">newton-cg</span></code> and <code class="docutils literal notranslate"><span class="pre">sag</span></code> will be initialized with the
coefficients computed in the previous fit. By <a class="reference external" href="https://github.com/TomDLT">Tom Dupre la Tour</a>.</p></li>
<li><p>Added <code class="docutils literal notranslate"><span class="pre">sample_weight</span></code> support to <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> for
the <code class="docutils literal notranslate"><span class="pre">lbfgs</span></code>, <code class="docutils literal notranslate"><span class="pre">newton-cg</span></code>, and <code class="docutils literal notranslate"><span class="pre">sag</span></code> solvers. By <a class="reference external" href="http://www.vstolbunov.com">Valentin Stolbunov</a>.
Support added to the <code class="docutils literal notranslate"><span class="pre">liblinear</span></code> solver. By <a class="reference external" href="https://manojbits.wordpress.com">Manoj Kumar</a>.</p></li>
<li><p>Added optional parameter <code class="docutils literal notranslate"><span class="pre">presort</span></code> to <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>, keeping default behavior
the same. This allows gradient boosters to turn off presorting when building
deep trees or using sparse data. By <a class="reference external" href="https://github.com/jmschrei">Jacob Schreiber</a>.</p></li>
<li><p>Altered <a class="reference internal" href="../modules/generated/sklearn.metrics.roc_curve.html#sklearn.metrics.roc_curve" title="sklearn.metrics.roc_curve"><code class="xref py py-func docutils literal notranslate"><span class="pre">metrics.roc_curve</span></code></a> to drop unnecessary thresholds by
default. By <a class="reference external" href="https://github.com/gclenaghan">Graham Clenaghan</a>.</p></li>
<li><p>Added <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> meta-transformer which can
be used along with estimators that have <code class="docutils literal notranslate"><span class="pre">coef_</span></code> or <code class="docutils literal notranslate"><span class="pre">feature_importances_</span></code>
attribute to select important features of the input data. By
<a class="reference external" href="https://github.com/maheshakya">Maheshakya Wijewardena</a>, <a class="reference external" href="https://joelnothman.com/">Joel Nothman</a> and <a class="reference external" href="https://manojbits.wordpress.com">Manoj Kumar</a>.</p></li>
<li><p>Added <a class="reference internal" href="../modules/generated/sklearn.metrics.pairwise.laplacian_kernel.html#sklearn.metrics.pairwise.laplacian_kernel" title="sklearn.metrics.pairwise.laplacian_kernel"><code class="xref py py-func docutils literal notranslate"><span class="pre">metrics.pairwise.laplacian_kernel</span></code></a>. By <a class="reference external" href="https://github.com/Clyde-fare">Clyde Fare</a>.</p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">covariance.GraphLasso</span></code> allows separate control of the convergence criterion
for the Elastic-Net subproblem via the <code class="docutils literal notranslate"><span class="pre">enet_tol</span></code> parameter.</p></li>
<li><p>Improved verbosity 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>.</p></li>
<li><p><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.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> no longer explicitly store the
samples used in bagging, resulting in a much reduced memory footprint for
storing random forest models.</p></li>
<li><p>Added <code class="docutils literal notranslate"><span class="pre">positive</span></code> option to <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> and
<a class="reference internal" href="../modules/generated/sklearn.linear_model.lars_path.html#sklearn.linear_model.lars_path" title="sklearn.linear_model.lars_path"><code class="xref py py-func docutils literal notranslate"><span class="pre">linear_model.lars_path</span></code></a> to force coefficients to be positive.
(<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/issues/5131">#5131</a>)</p></li>
<li><p>Added the <code class="docutils literal notranslate"><span class="pre">X_norm_squared</span></code> parameter to <a class="reference internal" href="../modules/generated/sklearn.metrics.pairwise.euclidean_distances.html#sklearn.metrics.pairwise.euclidean_distances" title="sklearn.metrics.pairwise.euclidean_distances"><code class="xref py py-func docutils literal notranslate"><span class="pre">metrics.pairwise.euclidean_distances</span></code></a>
to provide precomputed squared norms for <code class="docutils literal notranslate"><span class="pre">X</span></code>.</p></li>
<li><p>Added the <code class="docutils literal notranslate"><span class="pre">fit_predict</span></code> method to <a class="reference internal" href="../modules/generated/sklearn.pipeline.Pipeline.html#sklearn.pipeline.Pipeline" title="sklearn.pipeline.Pipeline"><code class="xref py py-class docutils literal notranslate"><span class="pre">pipeline.Pipeline</span></code></a>.</p></li>
<li><p>Added the <a class="reference internal" href="../modules/generated/sklearn.preprocessing.minmax_scale.html#sklearn.preprocessing.minmax_scale" title="sklearn.preprocessing.minmax_scale"><code class="xref py py-func docutils literal notranslate"><span class="pre">preprocessing.minmax_scale</span></code></a> function.</p></li>
</ul>
</section>
<section id="id3">
<h4>Bug fixes<a class="headerlink" href="#id3" title="Link to this heading">#</a></h4>
<ul class="simple">
<li><p>Fixed non-determinism in <a class="reference internal" href="../modules/generated/sklearn.dummy.DummyClassifier.html#sklearn.dummy.DummyClassifier" title="sklearn.dummy.DummyClassifier"><code class="xref py py-class docutils literal notranslate"><span class="pre">dummy.DummyClassifier</span></code></a> with sparse
multi-label output. By <a class="reference external" href="https://amueller.github.io/">Andreas Müller</a>.</p></li>
<li><p>Fixed the output shape of <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> to
<code class="docutils literal notranslate"><span class="pre">(n_samples,</span> <span class="pre">)</span></code>. By <a class="reference external" href="https://amueller.github.io/">Andreas Müller</a>.</p></li>
<li><p>Fixed bug in <code class="docutils literal notranslate"><span class="pre">decomposition.DictLearning</span></code> when <code class="docutils literal notranslate"><span class="pre">n_jobs</span> <span class="pre"><</span> <span class="pre">0</span></code>. By
<a class="reference external" href="https://amueller.github.io/">Andreas Müller</a>.</p></li>
<li><p>Fixed bug where <code class="docutils literal notranslate"><span class="pre">grid_search.RandomizedSearchCV</span></code> could consume a
lot of memory for large discrete grids. By <a class="reference external" href="https://joelnothman.com/">Joel Nothman</a>.</p></li>
<li><p>Fixed bug in <a class="reference internal" href="../modules/generated/sklearn.linear_model.LogisticRegressionCV.html#sklearn.linear_model.LogisticRegressionCV" title="sklearn.linear_model.LogisticRegressionCV"><code class="xref py py-class docutils literal notranslate"><span class="pre">linear_model.LogisticRegressionCV</span></code></a> where <code class="docutils literal notranslate"><span class="pre">penalty</span></code> was ignored
in the final fit. By <a class="reference external" href="https://manojbits.wordpress.com">Manoj Kumar</a>.</p></li>
<li><p>Fixed bug in <code class="docutils literal notranslate"><span class="pre">ensemble.forest.ForestClassifier</span></code> while computing
oob_score and X is a sparse.csc_matrix. By <a class="reference external" href="https://github.com/ankurankan">Ankur Ankan</a>.</p></li>
<li><p>All regressors now consistently handle and warn when given <code class="docutils literal notranslate"><span class="pre">y</span></code> that is of
shape <code class="docutils literal notranslate"><span class="pre">(n_samples,</span> <span class="pre">1)</span></code>. By <a class="reference external" href="https://amueller.github.io/">Andreas Müller</a> and Henry Lin.
(<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/issues/5431">#5431</a>)</p></li>
<li><p>Fix 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> cluster reassignment for sparse input by
<a class="reference external" href="https://github.com/larsmans">Lars Buitinck</a>.</p></li>
<li><p>Fixed a bug in <a class="reference internal" href="../modules/generated/sklearn.discriminant_analysis.LinearDiscriminantAnalysis.html#sklearn.discriminant_analysis.LinearDiscriminantAnalysis" title="sklearn.discriminant_analysis.LinearDiscriminantAnalysis"><code class="xref py py-class docutils literal notranslate"><span class="pre">discriminant_analysis.LinearDiscriminantAnalysis</span></code></a> that
could cause asymmetric covariance matrices when using shrinkage. By <a class="reference external" href="https://tnsre.embs.org/author/martinbillinger/">Martin
Billinger</a>.</p></li>
<li><p>Fixed <code class="docutils literal notranslate"><span class="pre">cross_validation.cross_val_predict</span></code> for estimators with
sparse predictions. By Buddha Prakash.</p></li>
<li><p>Fixed the <code class="docutils literal notranslate"><span class="pre">predict_proba</span></code> method 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>
to use soft-max instead of one-vs-rest normalization. By <a class="reference external" href="https://manojbits.wordpress.com">Manoj Kumar</a>.
(<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/issues/5182">#5182</a>)</p></li>
<li><p>Fixed the <code class="docutils literal notranslate"><span class="pre">partial_fit</span></code> method of <a class="reference internal" href="../modules/generated/sklearn.linear_model.SGDClassifier.html#sklearn.linear_model.SGDClassifier" title="sklearn.linear_model.SGDClassifier"><code class="xref py py-class docutils literal notranslate"><span class="pre">linear_model.SGDClassifier</span></code></a>
when called with <code class="docutils literal notranslate"><span class="pre">average=True</span></code>. By <a class="reference external" href="https://github.com/andylamb">Andrew Lamb</a>.
(<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/issues/5282">#5282</a>)</p></li>
<li><p>Dataset fetchers use different filenames under Python 2 and Python 3 to
avoid pickling compatibility issues. By <a class="reference external" href="https://bsky.app/profile/ogrisel.bsky.social">Olivier Grisel</a>.
(<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/issues/5355">#5355</a>)</p></li>
<li><p>Fixed a bug in <a class="reference internal" href="../modules/generated/sklearn.naive_bayes.GaussianNB.html#sklearn.naive_bayes.GaussianNB" title="sklearn.naive_bayes.GaussianNB"><code class="xref py py-class docutils literal notranslate"><span class="pre">naive_bayes.GaussianNB</span></code></a> which caused classification
results to depend on scale. By <a class="reference external" href="https://staff.washington.edu/jakevdp/">Jake Vanderplas</a>.</p></li>
<li><p>Fixed temporarily <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>, which was incorrect
when fitting the intercept in the case of sparse data. The fix
automatically changes the solver to ‘sag’ in this case.
<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/issues/5360">#5360</a> by <a class="reference external" href="https://github.com/TomDLT">Tom Dupre la Tour</a>.</p></li>
<li><p>Fixed a performance bug in <code class="docutils literal notranslate"><span class="pre">decomposition.RandomizedPCA</span></code> on data
with a large number of features and fewer samples. (<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/issues/4478">#4478</a>)
By <a class="reference external" href="https://amueller.github.io/">Andreas Müller</a>, <a class="reference external" href="https://github.com/lesteve">Loic Esteve</a> and <a class="reference external" href="https://github.com/giorgiop">Giorgio Patrini</a>.</p></li>
<li><p>Fixed bug in <code class="docutils literal notranslate"><span class="pre">cross_decomposition.PLS</span></code> that yielded unstable and
platform dependent output, and failed on <code class="docutils literal notranslate"><span class="pre">fit_transform</span></code>.
By <a class="reference external" href="https://github.com/arthurmensch">Arthur Mensch</a>.</p></li>
<li><p>Fixes to the <code class="docutils literal notranslate"><span class="pre">Bunch</span></code> class used to store datasets.</p></li>
<li><p>Fixed <code class="docutils literal notranslate"><span class="pre">ensemble.plot_partial_dependence</span></code> ignoring the
<code class="docutils literal notranslate"><span class="pre">percentiles</span></code> parameter.</p></li>
<li><p>Providing a <code class="docutils literal notranslate"><span class="pre">set</span></code> as vocabulary in <code class="docutils literal notranslate"><span class="pre">CountVectorizer</span></code> no longer
leads to inconsistent results when pickling.</p></li>
<li><p>Fixed the conditions on when a precomputed Gram matrix needs to
be recomputed in <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-class docutils literal notranslate"><span class="pre">linear_model.LinearRegression</span></code></a>,
<a class="reference internal" href="../modules/generated/sklearn.linear_model.OrthogonalMatchingPursuit.html#sklearn.linear_model.OrthogonalMatchingPursuit" title="sklearn.linear_model.OrthogonalMatchingPursuit"><code class="xref py py-class docutils literal notranslate"><span class="pre">linear_model.OrthogonalMatchingPursuit</span></code></a>,
<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>.</p></li>
<li><p>Fixed inconsistent memory layout in the coordinate descent solver
that affected <code class="docutils literal notranslate"><span class="pre">linear_model.DictionaryLearning</span></code> and
<code class="docutils literal notranslate"><span class="pre">covariance.GraphLasso</span></code>. (<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/issues/5337">#5337</a>)
By <a class="reference external" href="https://bsky.app/profile/ogrisel.bsky.social">Olivier Grisel</a>.</p></li>
<li><p><a class="reference internal" href="../modules/generated/sklearn.manifold.LocallyLinearEmbedding.html#sklearn.manifold.LocallyLinearEmbedding" title="sklearn.manifold.LocallyLinearEmbedding"><code class="xref py py-class docutils literal notranslate"><span class="pre">manifold.LocallyLinearEmbedding</span></code></a> no longer ignores the <code class="docutils literal notranslate"><span class="pre">reg</span></code>
parameter.</p></li>
<li><p>Nearest Neighbor estimators with custom distance metrics can now be pickled.
(<a class="reference external" href="https://github.com/scikit-learn/scikit-learn/issues/4362">#4362</a>)</p></li>
<li><p>Fixed a bug in <a class="reference internal" href="../modules/generated/sklearn.pipeline.FeatureUnion.html#sklearn.pipeline.FeatureUnion" title="sklearn.pipeline.FeatureUnion"><code class="xref py py-class docutils literal notranslate"><span class="pre">pipeline.FeatureUnion</span></code></a> where <code class="docutils literal notranslate"><span class="pre">transformer_weights</span></code>
were not properly handled when performing grid-searches.</p></li>
<li><p>Fixed a bug in <a class="reference internal" href="../modules/generated/sklearn.linear_model.LogisticRegression.html#sklearn.linear_model.LogisticRegression" title="sklearn.linear_model.LogisticRegression"><code class="xref py py-class docutils literal notranslate"><span class="pre">linear_model.LogisticRegression</span></code></a> and
<a class="reference internal" href="../modules/generated/sklearn.linear_model.LogisticRegressionCV.html#sklearn.linear_model.LogisticRegressionCV" title="sklearn.linear_model.LogisticRegressionCV"><code class="xref py py-class docutils literal notranslate"><span class="pre">linear_model.LogisticRegressionCV</span></code></a> when using
<code class="docutils literal notranslate"><span class="pre">class_weight='balanced'</span></code> or <code class="docutils literal notranslate"><span class="pre">class_weight='auto'</span></code>.
By <a class="reference external" href="https://github.com/TomDLT">Tom Dupre la Tour</a>.</p></li>
<li><p>Fixed bug <a class="reference external" href="https://github.com/scikit-learn/scikit-learn/issues/5495">#5495</a> when
doing OVR(SVC(decision_function_shape=”ovr”)). Fixed by
<a class="reference external" href="https://github.com/dohmatob">Elvis Dohmatob</a>.</p></li>
</ul>
</section>
</section>
<section id="api-changes-summary">
<h3>API changes summary<a class="headerlink" href="#api-changes-summary" title="Link to this heading">#</a></h3>
<ul class="simple">
<li><p>Attribute <code class="docutils literal notranslate"><span class="pre">data_min</span></code>, <code class="docutils literal notranslate"><span class="pre">data_max</span></code> and <code class="docutils literal notranslate"><span class="pre">data_range</span></code> in
<a class="reference internal" href="../modules/generated/sklearn.preprocessing.MinMaxScaler.html#sklearn.preprocessing.MinMaxScaler" title="sklearn.preprocessing.MinMaxScaler"><code class="xref py py-class docutils literal notranslate"><span class="pre">preprocessing.MinMaxScaler</span></code></a> are deprecated and won’t be available
from 0.19. Instead, the class now exposes <code class="docutils literal notranslate"><span class="pre">data_min_</span></code>, <code class="docutils literal notranslate"><span class="pre">data_max_</span></code>
and <code class="docutils literal notranslate"><span class="pre">data_range_</span></code>. By <a class="reference external" href="https://github.com/giorgiop">Giorgio Patrini</a>.</p></li>
<li><p>All Scaler classes now have an <code class="docutils literal notranslate"><span class="pre">scale_</span></code> attribute, the feature-wise
rescaling applied by their <code class="docutils literal notranslate"><span class="pre">transform</span></code> methods. The old attribute <code class="docutils literal notranslate"><span class="pre">std_</span></code>
in <a class="reference internal" href="../modules/generated/sklearn.preprocessing.StandardScaler.html#sklearn.preprocessing.StandardScaler" title="sklearn.preprocessing.StandardScaler"><code class="xref py py-class docutils literal notranslate"><span class="pre">preprocessing.StandardScaler</span></code></a> is deprecated and superseded
by <code class="docutils literal notranslate"><span class="pre">scale_</span></code>; it won’t be available in 0.19. By <a class="reference external" href="https://github.com/giorgiop">Giorgio Patrini</a>.</p></li>
<li><p><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.NuSVC.html#sklearn.svm.NuSVC" title="sklearn.svm.NuSVC"><code class="xref py py-class docutils literal notranslate"><span class="pre">svm.NuSVC</span></code></a> now have an <code class="docutils literal notranslate"><span class="pre">decision_function_shape</span></code>
parameter to make their decision function of shape <code class="docutils literal notranslate"><span class="pre">(n_samples,</span> <span class="pre">n_classes)</span></code>
by setting <code class="docutils literal notranslate"><span class="pre">decision_function_shape='ovr'</span></code>. This will be the default behavior
starting in 0.19. By <a class="reference external" href="https://amueller.github.io/">Andreas Müller</a>.</p></li>
<li><p>Passing 1D data arrays as input to estimators is now deprecated as it
caused confusion in how the array elements should be interpreted
as features or as samples. All data arrays are now expected
to be explicitly shaped <code class="docutils literal notranslate"><span class="pre">(n_samples,</span> <span class="pre">n_features)</span></code>.
By <a class="reference external" href="https://github.com/vighneshbirodkar">Vighnesh Birodkar</a>.</p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">lda.LDA</span></code> and <code class="docutils literal notranslate"><span class="pre">qda.QDA</span></code> have been moved to
<a class="reference internal" href="../modules/generated/sklearn.discriminant_analysis.LinearDiscriminantAnalysis.html#sklearn.discriminant_analysis.LinearDiscriminantAnalysis" title="sklearn.discriminant_analysis.LinearDiscriminantAnalysis"><code class="xref py py-class docutils literal notranslate"><span class="pre">discriminant_analysis.LinearDiscriminantAnalysis</span></code></a> and
<a class="reference internal" href="../modules/generated/sklearn.discriminant_analysis.QuadraticDiscriminantAnalysis.html#sklearn.discriminant_analysis.QuadraticDiscriminantAnalysis" title="sklearn.discriminant_analysis.QuadraticDiscriminantAnalysis"><code class="xref py py-class docutils literal notranslate"><span class="pre">discriminant_analysis.QuadraticDiscriminantAnalysis</span></code></a>.</p></li>
<li><p>The <code class="docutils literal notranslate"><span class="pre">store_covariance</span></code> and <code class="docutils literal notranslate"><span class="pre">tol</span></code> parameters have been moved from
the fit method to the constructor in
<a class="reference internal" href="../modules/generated/sklearn.discriminant_analysis.LinearDiscriminantAnalysis.html#sklearn.discriminant_analysis.LinearDiscriminantAnalysis" title="sklearn.discriminant_analysis.LinearDiscriminantAnalysis"><code class="xref py py-class docutils literal notranslate"><span class="pre">discriminant_analysis.LinearDiscriminantAnalysis</span></code></a> and the
<code class="docutils literal notranslate"><span class="pre">store_covariances</span></code> and <code class="docutils literal notranslate"><span class="pre">tol</span></code> parameters have been moved from the
fit method to the constructor in
<a class="reference internal" href="../modules/generated/sklearn.discriminant_analysis.QuadraticDiscriminantAnalysis.html#sklearn.discriminant_analysis.QuadraticDiscriminantAnalysis" title="sklearn.discriminant_analysis.QuadraticDiscriminantAnalysis"><code class="xref py py-class docutils literal notranslate"><span class="pre">discriminant_analysis.QuadraticDiscriminantAnalysis</span></code></a>.</p></li>
<li><p>Models inheriting from <code class="docutils literal notranslate"><span class="pre">_LearntSelectorMixin</span></code> will no longer support the
transform methods. (i.e, RandomForests, GradientBoosting, LogisticRegression,
DecisionTrees, SVMs and SGD related models). Wrap these models around the
metatransfomer <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> to remove
features (according to <code class="docutils literal notranslate"><span class="pre">coefs_</span></code> or <code class="docutils literal notranslate"><span class="pre">feature_importances_</span></code>)
which are below a certain threshold value instead.</p></li>
<li><p><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> re-runs cluster-assignments in case of non-convergence,
to ensure consistency of <code class="docutils literal notranslate"><span class="pre">predict(X)</span></code> and <code class="docutils literal notranslate"><span class="pre">labels_</span></code>. By
<a class="reference external" href="https://github.com/vighneshbirodkar">Vighnesh Birodkar</a>.</p></li>
<li><p>Classifier and Regressor models are now tagged as such using the
<code class="docutils literal notranslate"><span class="pre">_estimator_type</span></code> attribute.</p></li>
<li><p>Cross-validation iterators always provide indices into training and test set,
not boolean masks.</p></li>
<li><p>The <code class="docutils literal notranslate"><span class="pre">decision_function</span></code> on all regressors was deprecated and will be
removed in 0.19. Use <code class="docutils literal notranslate"><span class="pre">predict</span></code> instead.</p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">datasets.load_lfw_pairs</span></code> is deprecated and will be removed in 0.19.
Use <a class="reference internal" href="../modules/generated/sklearn.datasets.fetch_lfw_pairs.html#sklearn.datasets.fetch_lfw_pairs" title="sklearn.datasets.fetch_lfw_pairs"><code class="xref py py-func docutils literal notranslate"><span class="pre">datasets.fetch_lfw_pairs</span></code></a> instead.</p></li>
<li><p>The deprecated <code class="docutils literal notranslate"><span class="pre">hmm</span></code> module was removed.</p></li>
<li><p>The deprecated <code class="docutils literal notranslate"><span class="pre">Bootstrap</span></code> cross-validation iterator was removed.</p></li>
<li><p>The deprecated <code class="docutils literal notranslate"><span class="pre">Ward</span></code> and <code class="docutils literal notranslate"><span class="pre">WardAgglomerative</span></code> classes have been removed.
Use <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> instead.</p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">cross_validation.check_cv</span></code> is now a public function.</p></li>
<li><p>The property <code class="docutils literal notranslate"><span class="pre">residues_</span></code> of <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-class docutils literal notranslate"><span class="pre">linear_model.LinearRegression</span></code></a> is deprecated
and will be removed in 0.19.</p></li>
<li><p>The deprecated <code class="docutils literal notranslate"><span class="pre">n_jobs</span></code> parameter of <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-class docutils literal notranslate"><span class="pre">linear_model.LinearRegression</span></code></a> has been moved
to the constructor.</p></li>
<li><p>Removed deprecated <code class="docutils literal notranslate"><span class="pre">class_weight</span></code> parameter from <a class="reference internal" href="../modules/generated/sklearn.linear_model.SGDClassifier.html#sklearn.linear_model.SGDClassifier" title="sklearn.linear_model.SGDClassifier"><code class="xref py py-class docutils literal notranslate"><span class="pre">linear_model.SGDClassifier</span></code></a>’s <code class="docutils literal notranslate"><span class="pre">fit</span></code>
method. Use the construction parameter instead.</p></li>
<li><p>The deprecated support for the sequence of sequences (or list of lists) multilabel
format was removed. To convert to and from the supported binary
indicator matrix format, use
<a class="reference internal" href="../modules/generated/sklearn.preprocessing.MultiLabelBinarizer.html#sklearn.preprocessing.MultiLabelBinarizer" title="sklearn.preprocessing.MultiLabelBinarizer"><code class="xref py py-class docutils literal notranslate"><span class="pre">MultiLabelBinarizer</span></code></a>.</p></li>
<li><p>The behavior of calling the <code class="docutils literal notranslate"><span class="pre">inverse_transform</span></code> method of <code class="docutils literal notranslate"><span class="pre">Pipeline.pipeline</span></code> will
change in 0.19. It will no longer reshape one-dimensional input to two-dimensional input.</p></li>
<li><p>The deprecated attributes <code class="docutils literal notranslate"><span class="pre">indicator_matrix_</span></code>, <code class="docutils literal notranslate"><span class="pre">multilabel_</span></code> and <code class="docutils literal notranslate"><span class="pre">classes_</span></code> of
<a class="reference internal" href="../modules/generated/sklearn.preprocessing.LabelBinarizer.html#sklearn.preprocessing.LabelBinarizer" title="sklearn.preprocessing.LabelBinarizer"><code class="xref py py-class docutils literal notranslate"><span class="pre">preprocessing.LabelBinarizer</span></code></a> were removed.</p></li>
<li><p>Using <code class="docutils literal notranslate"><span class="pre">gamma=0</span></code> in <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> to automatically set the
gamma to <code class="docutils literal notranslate"><span class="pre">1.</span> <span class="pre">/</span> <span class="pre">n_features</span></code> is deprecated and will be removed in 0.19.
Use <code class="docutils literal notranslate"><span class="pre">gamma="auto"</span></code> instead.</p></li>
</ul>
</section>
<section id="code-contributors">
<h3>Code Contributors<a class="headerlink" href="#code-contributors" title="Link to this heading">#</a></h3>
<p>Aaron Schumacher, Adithya Ganesh, akitty, Alexandre Gramfort, Alexey Grigorev,
Ali Baharev, Allen Riddell, Ando Saabas, Andreas Mueller, Andrew Lamb, Anish
Shah, Ankur Ankan, Anthony Erlinger, Ari Rouvinen, Arnaud Joly, Arnaud Rachez,
Arthur Mensch, banilo, Barmaley.exe, benjaminirving, Boyuan Deng, Brett Naul,
Brian McFee, Buddha Prakash, Chi Zhang, Chih-Wei Chang, Christof Angermueller,