skfolio 0.5.1__py3-none-any.whl → 0.5.2__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.
- skfolio/datasets/_base.py +4 -1
- {skfolio-0.5.1.dist-info → skfolio-0.5.2.dist-info}/METADATA +11 -5
- {skfolio-0.5.1.dist-info → skfolio-0.5.2.dist-info}/RECORD +6 -6
- {skfolio-0.5.1.dist-info → skfolio-0.5.2.dist-info}/WHEEL +1 -1
- {skfolio-0.5.1.dist-info → skfolio-0.5.2.dist-info}/LICENSE +0 -0
- {skfolio-0.5.1.dist-info → skfolio-0.5.2.dist-info}/top_level.txt +0 -0
skfolio/datasets/_base.py
CHANGED
@@ -11,6 +11,7 @@
|
|
11
11
|
import gzip
|
12
12
|
import os
|
13
13
|
import shutil
|
14
|
+
import sys
|
14
15
|
import urllib.request as ur
|
15
16
|
from importlib import resources
|
16
17
|
from pathlib import Path
|
@@ -140,7 +141,9 @@ def download_dataset(
|
|
140
141
|
DataFrame with each row representing one observation and each column
|
141
142
|
representing the asset price of a given observation.
|
142
143
|
"""
|
143
|
-
|
144
|
+
# Use a CORS proxy when triggering requests from the browser
|
145
|
+
url_prefix = "https://corsproxy.io/?" if sys.platform == "emscripten" else ""
|
146
|
+
url = url_prefix + (
|
144
147
|
f"https://github.com/skfolio/skfolio-datasets/raw/main/"
|
145
148
|
f"datasets/{data_filename}.csv.gz"
|
146
149
|
)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: skfolio
|
3
|
-
Version: 0.5.
|
3
|
+
Version: 0.5.2
|
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>
|
@@ -69,7 +69,7 @@ Requires-Dist: sphinx-gallery ; extra == 'docs'
|
|
69
69
|
Requires-Dist: sphinx-design ; extra == 'docs'
|
70
70
|
Requires-Dist: pydata-sphinx-theme ==0.13.3 ; extra == 'docs'
|
71
71
|
Requires-Dist: matplotlib ; extra == 'docs'
|
72
|
-
Requires-Dist: kaleido ; extra == 'docs'
|
72
|
+
Requires-Dist: kaleido ==0.2.1 ; extra == 'docs'
|
73
73
|
Requires-Dist: sphinx-copybutton ; extra == 'docs'
|
74
74
|
Requires-Dist: numpydoc ; extra == 'docs'
|
75
75
|
Requires-Dist: sphinx-togglebutton ; extra == 'docs'
|
@@ -77,6 +77,9 @@ Requires-Dist: sphinx-favicon ; extra == 'docs'
|
|
77
77
|
Requires-Dist: sphinx-prompt ; extra == 'docs'
|
78
78
|
Requires-Dist: sphinxext.opengraph ; extra == 'docs'
|
79
79
|
Requires-Dist: sphinx-sitemap ; extra == 'docs'
|
80
|
+
Requires-Dist: jupyterlite-sphinx ; extra == 'docs'
|
81
|
+
Requires-Dist: jupyterlite-pyodide-kernel ; extra == 'docs'
|
82
|
+
Requires-Dist: nbformat ; extra == 'docs'
|
80
83
|
Provides-Extra: tests
|
81
84
|
Requires-Dist: pytest ; extra == 'tests'
|
82
85
|
Requires-Dist: pytest-cov ; extra == 'tests'
|
@@ -84,7 +87,7 @@ Requires-Dist: ruff ; extra == 'tests'
|
|
84
87
|
|
85
88
|
.. -*- mode: rst -*-
|
86
89
|
|
87
|
-
|Licence| |Codecov| |Black| |PythonVersion| |PyPi| |CI/CD| |Downloads| |Ruff| |Contribution| |Website|
|
90
|
+
|Licence| |Codecov| |Black| |PythonVersion| |PyPi| |CI/CD| |Downloads| |Ruff| |Contribution| |Website| |JupyterLite|
|
88
91
|
|
89
92
|
.. |Licence| image:: https://img.shields.io/badge/License-BSD%203--Clause-blue.svg
|
90
93
|
:target: https://github.com/skfolio/skfolio/blob/main/LICENSE
|
@@ -116,14 +119,17 @@ Requires-Dist: ruff ; extra == 'tests'
|
|
116
119
|
.. |Website| image:: https://img.shields.io/website.svg?down_color=red&down_message=down&up_color=53cc0d&up_message=up&url=https://skfolio.org
|
117
120
|
:target: https://skfolio.org
|
118
121
|
|
122
|
+
.. |JupyterLite| image:: https://jupyterlite.rtfd.io/en/latest/_static/badge.svg
|
123
|
+
:target: https://skfolio.org/lite
|
124
|
+
|
119
125
|
.. |PythonMinVersion| replace:: 3.10
|
120
126
|
.. |NumpyMinVersion| replace:: 1.23.4
|
121
127
|
.. |ScipyMinVersion| replace:: 1.8.0
|
122
128
|
.. |PandasMinVersion| replace:: 1.4.1
|
123
129
|
.. |CvxpyMinVersion| replace:: 1.4.1
|
124
|
-
.. |SklearnMinVersion| replace:: 1.
|
130
|
+
.. |SklearnMinVersion| replace:: 1.5.0
|
125
131
|
.. |JoblibMinVersion| replace:: 1.3.2
|
126
|
-
.. |PlotlyMinVersion| replace:: 5.
|
132
|
+
.. |PlotlyMinVersion| replace:: 5.22.0
|
127
133
|
|
128
134
|
|
129
135
|
===============
|
@@ -4,7 +4,7 @@ skfolio/typing.py,sha256=yEZiCZ6UIyfYUqtfj9Kf2KA9mrjUbmxyzpH9uqVboJs,1378
|
|
4
4
|
skfolio/cluster/__init__.py,sha256=4g-PFB_ld9BhiQ1ZPvvAorpFbRwd_p_DkeRlulDv2Hk,251
|
5
5
|
skfolio/cluster/_hierarchical.py,sha256=16INBe5HB7ALODO3RNI8ZjOYALtMZa3U_7EP1aEIxp8,12819
|
6
6
|
skfolio/datasets/__init__.py,sha256=TKzb3wucwuaBI7V8GSiEIun-oaV0W0Mhl_XJgMjlajU,481
|
7
|
-
skfolio/datasets/_base.py,sha256=
|
7
|
+
skfolio/datasets/_base.py,sha256=ECeHHlNOb2U5hEE3kaK8yQtegcVYiuGTjMLJ3Dop0Ks,16073
|
8
8
|
skfolio/datasets/data/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
9
9
|
skfolio/datasets/data/factors_dataset.csv.gz,sha256=brCJlT25DJo40yg1gnUXAakNtvWZZYR_1ksFeN5JcWE,36146
|
10
10
|
skfolio/datasets/data/sp500_dataset.csv.gz,sha256=7iHKwovvsdCnOanOsiGE-ZU5RyaqDP3pohlB0awErA0,426065
|
@@ -88,8 +88,8 @@ skfolio/utils/equations.py,sha256=MQ1w3VSM2n_j9bTIKAQA716aWKYyUqtw5yM2bU-9t-M,13
|
|
88
88
|
skfolio/utils/sorting.py,sha256=lSjMvH2L-sSj-06B3MlwBrH1rtjCeGEe4hG894W7TE0,3504
|
89
89
|
skfolio/utils/stats.py,sha256=mWMpJ_XBy400kx7GlwBvR4Fwo8ValOZ9J3VDLODDaHQ,16995
|
90
90
|
skfolio/utils/tools.py,sha256=4KrmBR9jOLiI6j0hb27gsPC--OHXo4Sp1xl-6i-k9Tg,20925
|
91
|
-
skfolio-0.5.
|
92
|
-
skfolio-0.5.
|
93
|
-
skfolio-0.5.
|
94
|
-
skfolio-0.5.
|
95
|
-
skfolio-0.5.
|
91
|
+
skfolio-0.5.2.dist-info/LICENSE,sha256=F6Gi-ZJX5BlVzYK8R9NcvAkAsKa7KO29xB1OScbrH6Q,1526
|
92
|
+
skfolio-0.5.2.dist-info/METADATA,sha256=YCnMzyRfmhzQpJ6P6VySw-DJlYuHBdw4bkcfIrR_Gc8,19906
|
93
|
+
skfolio-0.5.2.dist-info/WHEEL,sha256=R06PA3UVYHThwHvxuRWMqaGcr-PuniXahwjmQRFMEkY,91
|
94
|
+
skfolio-0.5.2.dist-info/top_level.txt,sha256=NXEaoS9Ms7t32gxkb867nV0OKlU0KmssL7IJBVo0fJs,8
|
95
|
+
skfolio-0.5.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|