autogluon.core 1.2.1b20250205__py3-none-any.whl → 1.2.1b20250207__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.
- autogluon/core/_setup_utils.py +1 -0
- autogluon/core/models/abstract/abstract_model.py +6 -6
- autogluon/core/trainer/abstract_trainer.py +21 -4733
- autogluon/core/version.py +1 -1
- {autogluon.core-1.2.1b20250205.dist-info → autogluon.core-1.2.1b20250207.dist-info}/METADATA +6 -6
- {autogluon.core-1.2.1b20250205.dist-info → autogluon.core-1.2.1b20250207.dist-info}/RECORD +13 -13
- /autogluon.core-1.2.1b20250205-py3.9-nspkg.pth → /autogluon.core-1.2.1b20250207-py3.9-nspkg.pth +0 -0
- {autogluon.core-1.2.1b20250205.dist-info → autogluon.core-1.2.1b20250207.dist-info}/LICENSE +0 -0
- {autogluon.core-1.2.1b20250205.dist-info → autogluon.core-1.2.1b20250207.dist-info}/NOTICE +0 -0
- {autogluon.core-1.2.1b20250205.dist-info → autogluon.core-1.2.1b20250207.dist-info}/WHEEL +0 -0
- {autogluon.core-1.2.1b20250205.dist-info → autogluon.core-1.2.1b20250207.dist-info}/namespace_packages.txt +0 -0
- {autogluon.core-1.2.1b20250205.dist-info → autogluon.core-1.2.1b20250207.dist-info}/top_level.txt +0 -0
- {autogluon.core-1.2.1b20250205.dist-info → autogluon.core-1.2.1b20250207.dist-info}/zip-safe +0 -0
autogluon/core/_setup_utils.py
CHANGED
@@ -32,6 +32,7 @@ DEPENDENT_PACKAGES = {
|
|
32
32
|
"async_timeout": ">=4.0,<6", # Major version cap
|
33
33
|
"transformers[sentencepiece]": ">=4.38.0,<5",
|
34
34
|
"accelerate": ">=0.34.0,<1.0",
|
35
|
+
"typing-extensions": ">=4.0,<5",
|
35
36
|
}
|
36
37
|
if LITE_MODE:
|
37
38
|
DEPENDENT_PACKAGES = {package: version for package, version in DEPENDENT_PACKAGES.items() if package not in ["psutil", "Pillow", "timm"]}
|
@@ -96,11 +96,11 @@ class AbstractModel:
|
|
96
96
|
|
97
97
|
def __init__(
|
98
98
|
self,
|
99
|
-
path: str = None,
|
100
|
-
name: str = None,
|
101
|
-
problem_type: str = None,
|
102
|
-
eval_metric:
|
103
|
-
hyperparameters: dict = None,
|
99
|
+
path: str | None = None,
|
100
|
+
name: str | None = None,
|
101
|
+
problem_type: str | None = None,
|
102
|
+
eval_metric: str | metrics.Scorer | None = None,
|
103
|
+
hyperparameters: dict | None = None,
|
104
104
|
):
|
105
105
|
if name is None:
|
106
106
|
self.name = self.__class__.__name__
|
@@ -1176,7 +1176,7 @@ class AbstractModel:
|
|
1176
1176
|
quantile_levels=self.quantile_levels,
|
1177
1177
|
)
|
1178
1178
|
|
1179
|
-
def save(self, path: str = None, verbose: bool = True) -> str:
|
1179
|
+
def save(self, path: str | None = None, verbose: bool = True) -> str:
|
1180
1180
|
"""
|
1181
1181
|
Saves the model to disk.
|
1182
1182
|
|