flexcode 0.2.2__py3-none-any.whl → 0.2.3__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.
- flexcode/_version.py +18 -15
- flexcode/loss_functions.py +1 -1
- flexcode/regression_models.py +1 -1
- {flexcode-0.2.2.dist-info → flexcode-0.2.3.dist-info}/METADATA +1 -1
- flexcode-0.2.3.dist-info/RECORD +13 -0
- {flexcode-0.2.2.dist-info → flexcode-0.2.3.dist-info}/WHEEL +1 -1
- flexcode-0.2.2.dist-info/RECORD +0 -13
- {flexcode-0.2.2.dist-info → flexcode-0.2.3.dist-info}/licenses/LICENSE +0 -0
- {flexcode-0.2.2.dist-info → flexcode-0.2.3.dist-info}/top_level.txt +0 -0
flexcode/_version.py
CHANGED
|
@@ -1,21 +1,24 @@
|
|
|
1
|
-
# file generated by
|
|
1
|
+
# file generated by vcs-versioning
|
|
2
2
|
# don't change, don't track in version control
|
|
3
|
+
from __future__ import annotations
|
|
3
4
|
|
|
4
|
-
__all__ = [
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
else:
|
|
13
|
-
VERSION_TUPLE = object
|
|
5
|
+
__all__ = [
|
|
6
|
+
"__version__",
|
|
7
|
+
"__version_tuple__",
|
|
8
|
+
"version",
|
|
9
|
+
"version_tuple",
|
|
10
|
+
"__commit_id__",
|
|
11
|
+
"commit_id",
|
|
12
|
+
]
|
|
14
13
|
|
|
15
14
|
version: str
|
|
16
15
|
__version__: str
|
|
17
|
-
__version_tuple__:
|
|
18
|
-
version_tuple:
|
|
16
|
+
__version_tuple__: tuple[int | str, ...]
|
|
17
|
+
version_tuple: tuple[int | str, ...]
|
|
18
|
+
commit_id: str | None
|
|
19
|
+
__commit_id__: str | None
|
|
20
|
+
|
|
21
|
+
__version__ = version = '0.2.3'
|
|
22
|
+
__version_tuple__ = version_tuple = (0, 2, 3)
|
|
19
23
|
|
|
20
|
-
|
|
21
|
-
__version_tuple__ = version_tuple = (0, 2, 2)
|
|
24
|
+
__commit_id__ = commit_id = None
|
flexcode/loss_functions.py
CHANGED
|
@@ -15,7 +15,7 @@ def cde_loss(cde_estimates, z_grid, true_z):
|
|
|
15
15
|
|
|
16
16
|
n_obs, n_grid = cde_estimates.shape
|
|
17
17
|
|
|
18
|
-
term1 = np.mean(np.
|
|
18
|
+
term1 = np.mean(np.trapezoid(cde_estimates**2, z_grid.flatten()))
|
|
19
19
|
|
|
20
20
|
nns = [np.argmin(np.abs(z_grid - true_z[ii])) for ii in range(n_obs)]
|
|
21
21
|
term2 = np.mean(cde_estimates[range(n_obs), nns])
|
flexcode/regression_models.py
CHANGED
|
@@ -142,7 +142,7 @@ class XGBoost(FlexCodeRegression):
|
|
|
142
142
|
# Also, set the default values if not passed
|
|
143
143
|
params["max_depth"] = params.get("max_depth", 6)
|
|
144
144
|
params["learning_rate"] = params.get("learning_rate", 0.3)
|
|
145
|
-
params["
|
|
145
|
+
params["verbosity"] = params.get("silent", 1)
|
|
146
146
|
params["objective"] = params.get("objective", "reg:linear")
|
|
147
147
|
|
|
148
148
|
params_opt, opt_flag = params_dict_optim_decision(params, multi_output=True)
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
flexcode/__init__.py,sha256=qKNV2YiiJ6aRJJv9kM4k88to1H-dqBpwUEg5zZIsZiI,32
|
|
2
|
+
flexcode/_version.py,sha256=yBpRAzc1O-fFxRL6MELR93JAnRVchbETxkSjTfqgm_w,520
|
|
3
|
+
flexcode/basis_functions.py,sha256=mZjVhvtD1Yu_58uqKyR6uv90NFBx8gf6naikgvqGpIs,6500
|
|
4
|
+
flexcode/core.py,sha256=O-dzBFHFku610-lW5cvFdtEinIIDqtb99trKUslLEME,6450
|
|
5
|
+
flexcode/helpers.py,sha256=NV_gxq3SCEN3bJFhMjaTIgPvvAglFmlKJEvXvEAgDbM,3074
|
|
6
|
+
flexcode/loss_functions.py,sha256=LlPDJNcGMgDIuaQqhrXNHYBu0XHXyAjnDEEDLIjk23E,783
|
|
7
|
+
flexcode/post_processing.py,sha256=9-RGTwJeyIJ_7pnx2Hq5iFUOKq2j_HJuewEuoFmHIzE,5506
|
|
8
|
+
flexcode/regression_models.py,sha256=HtGk8U9_FYAgaa2csCjJPYNjEar5_s4rN3ZhHq5mDbM,9683
|
|
9
|
+
flexcode-0.2.3.dist-info/licenses/LICENSE,sha256=wDzqAntLQORAL6vQhVdzZyfsPVvFStZKtkct5DIZjK0,18047
|
|
10
|
+
flexcode-0.2.3.dist-info/METADATA,sha256=AoVUuctVXxiyQtE0LLW_QQBJkyT1qTwHmVQEG-LzIIs,26397
|
|
11
|
+
flexcode-0.2.3.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
|
|
12
|
+
flexcode-0.2.3.dist-info/top_level.txt,sha256=0nY0ZxQlRUJ1gI3em83fdM1AtjBbuesBCmtV3twS6oM,9
|
|
13
|
+
flexcode-0.2.3.dist-info/RECORD,,
|
flexcode-0.2.2.dist-info/RECORD
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
flexcode/__init__.py,sha256=qKNV2YiiJ6aRJJv9kM4k88to1H-dqBpwUEg5zZIsZiI,32
|
|
2
|
-
flexcode/_version.py,sha256=OjGGK5TcHVG44Y62aAqeJH4CskkZoY9ydbHOtCDew50,511
|
|
3
|
-
flexcode/basis_functions.py,sha256=mZjVhvtD1Yu_58uqKyR6uv90NFBx8gf6naikgvqGpIs,6500
|
|
4
|
-
flexcode/core.py,sha256=O-dzBFHFku610-lW5cvFdtEinIIDqtb99trKUslLEME,6450
|
|
5
|
-
flexcode/helpers.py,sha256=NV_gxq3SCEN3bJFhMjaTIgPvvAglFmlKJEvXvEAgDbM,3074
|
|
6
|
-
flexcode/loss_functions.py,sha256=3iqLkRmALk2jwS26dzSxfHohJmNGQfNRjnDgMJyoB-8,779
|
|
7
|
-
flexcode/post_processing.py,sha256=9-RGTwJeyIJ_7pnx2Hq5iFUOKq2j_HJuewEuoFmHIzE,5506
|
|
8
|
-
flexcode/regression_models.py,sha256=dld-GmI53skHEL2Rn6wONzWYbbHeIt5Gyw-D0dVhOOM,9680
|
|
9
|
-
flexcode-0.2.2.dist-info/licenses/LICENSE,sha256=wDzqAntLQORAL6vQhVdzZyfsPVvFStZKtkct5DIZjK0,18047
|
|
10
|
-
flexcode-0.2.2.dist-info/METADATA,sha256=hAmc1woF8HSWvMwdM9dwA5D-X0hOIsN1uIykgfG8f3o,26397
|
|
11
|
-
flexcode-0.2.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
12
|
-
flexcode-0.2.2.dist-info/top_level.txt,sha256=0nY0ZxQlRUJ1gI3em83fdM1AtjBbuesBCmtV3twS6oM,9
|
|
13
|
-
flexcode-0.2.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|