datfid 0.1.14__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.14 → datfid-0.1.16}/PKG-INFO +1 -1
- {datfid-0.1.14 → datfid-0.1.16}/datfid/client.py +7 -5
- {datfid-0.1.14 → datfid-0.1.16}/datfid.egg-info/PKG-INFO +1 -1
- {datfid-0.1.14 → datfid-0.1.16}/setup.py +2 -2
- {datfid-0.1.14 → datfid-0.1.16}/LICENSE +0 -0
- {datfid-0.1.14 → datfid-0.1.16}/README.md +0 -0
- {datfid-0.1.14 → datfid-0.1.16}/datfid/__init__.py +0 -0
- {datfid-0.1.14 → datfid-0.1.16}/datfid.egg-info/SOURCES.txt +0 -0
- {datfid-0.1.14 → datfid-0.1.16}/datfid.egg-info/dependency_links.txt +0 -0
- {datfid-0.1.14 → datfid-0.1.16}/datfid.egg-info/requires.txt +0 -0
- {datfid-0.1.14 → datfid-0.1.16}/datfid.egg-info/top_level.txt +0 -0
- {datfid-0.1.14 → datfid-0.1.16}/setup.cfg +0 -0
|
@@ -145,7 +145,7 @@ class DATFIDClient:
|
|
|
145
145
|
self.logger.error(f"Forecast generation failed: {str(e)}")
|
|
146
146
|
raise
|
|
147
147
|
|
|
148
|
-
def fit_model_ind(
|
|
148
|
+
def fit_model_ind(
|
|
149
149
|
self,
|
|
150
150
|
df: pd.DataFrame,
|
|
151
151
|
id_col: str,
|
|
@@ -156,7 +156,7 @@ def fit_model_ind(
|
|
|
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,10 +200,12 @@ def fit_model_ind(
|
|
|
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
|
-
def forecast_model_ind(
|
|
208
|
+
def forecast_model_ind(
|
|
207
209
|
self,
|
|
208
210
|
df_forecast: pd.DataFrame
|
|
209
211
|
) -> pd.DataFrame:
|
|
@@ -6,7 +6,7 @@ from setuptools import setup, find_packages
|
|
|
6
6
|
# 3) delete folder datfid.egg-info
|
|
7
7
|
# 4) delete older files from dist folder
|
|
8
8
|
# 5) in terminal: python setup.py sdist bdist_wheel
|
|
9
|
-
# 6) in terminal: twine upload --repository
|
|
9
|
+
# 6) in terminal: twine upload --repository pypi dist/*
|
|
10
10
|
# 7) in hugging face delete older files from dist folder
|
|
11
11
|
# 8) in hugging face upload updated files
|
|
12
12
|
# 9) in terminal uninstall older version of datfid: pip uninstall datfid
|
|
@@ -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
|