skfolio 0.4.0__py3-none-any.whl → 0.4.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -377,7 +377,7 @@ class CombinatorialPurgedCV(BaseCombinatorialCV):
377
377
  ]
378
378
  values = self.index_train_test_.T
379
379
  values = np.insert(values, 0, np.arange(n_samples), axis=0)
380
- fill_color = np.select(cond, ["green", "blue", "red"]).T
380
+ fill_color = np.select(cond, ["green", "blue", "red"], default="green").T
381
381
  fill_color = fill_color.astype(object)
382
382
  fill_color = np.insert(
383
383
  fill_color, 0, np.array(["darkblue" for _ in range(n_samples)]), axis=0
@@ -410,7 +410,7 @@ class Population(list):
410
410
  spacing: float | None = None,
411
411
  display_sub_ptf_name: bool = True,
412
412
  ) -> pd.DataFrame:
413
- """Contribution of each asset to a given measure of each portfolio in the
413
+ r"""Contribution of each asset to a given measure of each portfolio in the
414
414
  population.
415
415
 
416
416
  Parameters
@@ -420,7 +420,7 @@ class Population(list):
420
420
 
421
421
  spacing : float, optional
422
422
  Spacing "h" of the finite difference:
423
- :math:`contribution(wi)= \frac{measure(wi-h) - measure(wi+h)}{2h}`
423
+ :math:`contribution(wi)= \frac{measure(wi-h) - measure(wi+h)}{2h}`.
424
424
 
425
425
  display_sub_ptf_name : bool, default=True
426
426
  If this is set to True, each sub-portfolio name composing a multi-period
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: skfolio
3
- Version: 0.4.0
3
+ Version: 0.4.1
4
4
  Summary: Portfolio optimization built on top of scikit-learn
5
5
  Author-email: Hugo Delatte <delatte.hugo@gmail.com>
6
6
  Maintainer-email: Hugo Delatte <delatte.hugo@gmail.com>
@@ -56,7 +56,7 @@ Classifier: Topic :: Software Development
56
56
  Requires-Python: >=3.10
57
57
  Description-Content-Type: text/x-rst
58
58
  License-File: LICENSE
59
- Requires-Dist: numpy <2.0.0,>=1.23.4
59
+ Requires-Dist: numpy >=1.23.4
60
60
  Requires-Dist: scipy >=1.8.0
61
61
  Requires-Dist: pandas >=1.4.1
62
62
  Requires-Dist: cvxpy >=1.4.1
@@ -18,7 +18,7 @@ skfolio/measures/_measures.py,sha256=Z7XHSyM9xfecDgOqm-lJQJhvZxasF018-oFS4QjC4g0
18
18
  skfolio/metrics/__init__.py,sha256=MomHJ5_bgjq4qUwGS2bfhNmG_ld0oQ4wK6y0Yy_Eonc,75
19
19
  skfolio/metrics/_scorer.py,sha256=h1VuZk-zzn4rIChHl9FvM7RxqVT3b-jR1CEB-cr9F2s,4306
20
20
  skfolio/model_selection/__init__.py,sha256=8j9Z5tpbgBScjFbn8ZsCm_6rZO7RkPQ1QIF8BqYMVA8,507
21
- skfolio/model_selection/_combinatorial.py,sha256=cS_W_4uA2aUC0eRbqbRnfezRRxUpm2_HGs1S5ea0q6E,19045
21
+ skfolio/model_selection/_combinatorial.py,sha256=uf5DzklgyLhfMKm0kWHXl2QLlUOAoiaxNb7cafrHVIg,19062
22
22
  skfolio/model_selection/_validation.py,sha256=3eFYzPejjDZljc33vRehDuBQTEKCkrj-mZihMVuGA4s,10034
23
23
  skfolio/model_selection/_walk_forward.py,sha256=T57HhdFGjG31mAufujHQuRK1uKfAdkiBx9eucQZ-WG0,15043
24
24
  skfolio/moments/__init__.py,sha256=zwxaRO4TLoPj8qrcYSofNyd3tYhbLLcZWQaErzfDdNg,794
@@ -60,7 +60,7 @@ skfolio/optimization/ensemble/_stacking.py,sha256=ZoICUnc_MwoXDQAR2kewCg-KIezSOI
60
60
  skfolio/optimization/naive/__init__.py,sha256=Dkr55R48urC-jfYN007NTbei16N91Na_EDYLVqzhGgQ,147
61
61
  skfolio/optimization/naive/_naive.py,sha256=AhEyYKEUAm-Fjn4p8SHwhp7yE9iF0tRyDZIjKYV4EeU,6390
62
62
  skfolio/population/__init__.py,sha256=rsPPMUv95aTK7vmpPeQwF8NzFuBwk6RDo5g4HNaPzNM,80
63
- skfolio/population/_population.py,sha256=9NKnz_rQYLnauP1Me6tnDwD7lq3MeGnSyCq-sb0fTV0,30424
63
+ skfolio/population/_population.py,sha256=WYT6yTVmarzMH3nj1-rQCvD-X2nH6q9bo928-lenUXs,30426
64
64
  skfolio/portfolio/__init__.py,sha256=YYtcAPmA2zeCxFGTXegg2FXcA7py6CxOX7IMTdYuXl0,586
65
65
  skfolio/portfolio/_base.py,sha256=EFLsvHoxZmDvGPOKePr6hQGXU7y7TWsALvzYP9qt0fQ,39588
66
66
  skfolio/portfolio/_multi_period_portfolio.py,sha256=K2JfEwlPD9iGO58lOdk7WUbWuXZDWw2prPT5T7pOdto,24387
@@ -84,8 +84,8 @@ skfolio/utils/equations.py,sha256=w0HsYjA7cS0mHYsI9MpixHLkof3HN26nc14ZfqFrHlE,11
84
84
  skfolio/utils/sorting.py,sha256=lSjMvH2L-sSj-06B3MlwBrH1rtjCeGEe4hG894W7TE0,3504
85
85
  skfolio/utils/stats.py,sha256=wuOmSt5panMMTw_pFYizLbmrclsE_4PHQfamkzJ5J2s,13937
86
86
  skfolio/utils/tools.py,sha256=4KrmBR9jOLiI6j0hb27gsPC--OHXo4Sp1xl-6i-k9Tg,20925
87
- skfolio-0.4.0.dist-info/LICENSE,sha256=F6Gi-ZJX5BlVzYK8R9NcvAkAsKa7KO29xB1OScbrH6Q,1526
88
- skfolio-0.4.0.dist-info/METADATA,sha256=Vh_PqWOdbuuaxurc6k3BL0dZeG7BpKLlis___v8YMv4,19617
89
- skfolio-0.4.0.dist-info/WHEEL,sha256=5Mi1sN9lKoFv_gxcPtisEVrJZihrm_beibeg5R6xb4I,91
90
- skfolio-0.4.0.dist-info/top_level.txt,sha256=NXEaoS9Ms7t32gxkb867nV0OKlU0KmssL7IJBVo0fJs,8
91
- skfolio-0.4.0.dist-info/RECORD,,
87
+ skfolio-0.4.1.dist-info/LICENSE,sha256=F6Gi-ZJX5BlVzYK8R9NcvAkAsKa7KO29xB1OScbrH6Q,1526
88
+ skfolio-0.4.1.dist-info/METADATA,sha256=tu4OaUrxQWNbllbaEmek2cPtZv5URQb-w7IY0_i_qUc,19610
89
+ skfolio-0.4.1.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
90
+ skfolio-0.4.1.dist-info/top_level.txt,sha256=NXEaoS9Ms7t32gxkb867nV0OKlU0KmssL7IJBVo0fJs,8
91
+ skfolio-0.4.1.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.0.0)
2
+ Generator: setuptools (75.1.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5