datfid 0.1.15__tar.gz → 0.1.16__tar.gz
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.
Potentially problematic release.
This version of datfid might be problematic. Click here for more details.
- {datfid-0.1.15 → datfid-0.1.16}/PKG-INFO +1 -1
- {datfid-0.1.15 → datfid-0.1.16}/datfid/client.py +5 -3
- {datfid-0.1.15 → datfid-0.1.16}/datfid.egg-info/PKG-INFO +1 -1
- {datfid-0.1.15 → datfid-0.1.16}/setup.py +1 -1
- {datfid-0.1.15 → datfid-0.1.16}/LICENSE +0 -0
- {datfid-0.1.15 → datfid-0.1.16}/README.md +0 -0
- {datfid-0.1.15 → datfid-0.1.16}/datfid/__init__.py +0 -0
- {datfid-0.1.15 → datfid-0.1.16}/datfid.egg-info/SOURCES.txt +0 -0
- {datfid-0.1.15 → datfid-0.1.16}/datfid.egg-info/dependency_links.txt +0 -0
- {datfid-0.1.15 → datfid-0.1.16}/datfid.egg-info/requires.txt +0 -0
- {datfid-0.1.15 → datfid-0.1.16}/datfid.egg-info/top_level.txt +0 -0
- {datfid-0.1.15 → datfid-0.1.16}/setup.cfg +0 -0
|
@@ -156,7 +156,7 @@ class DATFIDClient:
|
|
|
156
156
|
current_features: Optional[list] = None,
|
|
157
157
|
filter_by_significance: bool = False,
|
|
158
158
|
meanvar_test: bool = False
|
|
159
|
-
) -> SimpleNamespace:
|
|
159
|
+
) -> Dict[str, SimpleNamespace]:
|
|
160
160
|
"""
|
|
161
161
|
Fit a model individual by individual using the DATFID API.
|
|
162
162
|
|
|
@@ -200,8 +200,10 @@ class DATFIDClient:
|
|
|
200
200
|
if response.status_code != 200:
|
|
201
201
|
raise Exception(f"Model fit failed: {response.text}")
|
|
202
202
|
|
|
203
|
-
|
|
204
|
-
|
|
203
|
+
raw = response.json() # { "<id>": { ... per-id result ... }, ... }
|
|
204
|
+
# Wrap each per-id result into a SimpleNamespace for dot access:
|
|
205
|
+
result_per_id = {str(k): SimpleNamespace(**v) for k, v in raw.items()}
|
|
206
|
+
return result_per_id # Dict[str, SimpleNamespace]
|
|
205
207
|
|
|
206
208
|
def forecast_model_ind(
|
|
207
209
|
self,
|
|
@@ -17,7 +17,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
|
|
|
17
17
|
|
|
18
18
|
setup(
|
|
19
19
|
name="datfid",
|
|
20
|
-
version="0.1.
|
|
20
|
+
version="0.1.16",
|
|
21
21
|
description="SDK to access the DATFID API hosted on Hugging Face Spaces",
|
|
22
22
|
long_description=long_description,
|
|
23
23
|
long_description_content_type="text/markdown", # Important!
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|