autogluon.tabular 1.2.1b20250218__py3-none-any.whl → 1.2.1b20250219__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.
@@ -3793,6 +3793,80 @@ class TabularPredictor(TabularPredictorDeprecatedMixin):
3793
3793
  self._assert_is_fit("info")
3794
3794
  return self._learner.get_info(include_model_info=True, include_model_failures=True)
3795
3795
 
3796
+ def model_info(self, model: str) -> dict:
3797
+ """
3798
+ Returns metadata information about the given model.
3799
+ Equivalent output to `predictor.info()["model_info"][model]`
3800
+
3801
+ Parameters
3802
+ ----------
3803
+ model: str
3804
+ The name of the model to get info for.
3805
+
3806
+ Returns
3807
+ -------
3808
+ model_info: dict
3809
+ Model info dictionary
3810
+
3811
+ """
3812
+ return self._trainer.get_model_info(model=model)
3813
+
3814
+ # TODO: Add entire `hyperparameters` dict method for multiple models (including stack ensemble)
3815
+ # TODO: Add unit test
3816
+ def model_hyperparameters(
3817
+ self,
3818
+ model: str,
3819
+ include_ag_args_ensemble: bool = True,
3820
+ output_format: Literal["user", "all"] = "user",
3821
+ ) -> dict:
3822
+ """
3823
+ Returns the hyperparameters of a given model.
3824
+
3825
+ Parameters
3826
+ ----------
3827
+ model: str
3828
+ The name of the model to get hyperparameters for.
3829
+ include_ag_args_ensemble: bool, default True
3830
+ If True, includes the ag_args_ensemble parameters if they exist (for example, when bagging is enabled).
3831
+ output_format: {"user", "all"}, default "user"
3832
+ If "user", returns the same hyperparameters specified by the user (only non-defaults).
3833
+ If "all", returns all hyperparameters used by the model (including default hyperparameters not specified by the user)
3834
+ Regardless of the output_format, they both are functionally equivalent if passed to AutoGluon.
3835
+
3836
+ Returns
3837
+ -------
3838
+ model_hyperparameters: dict
3839
+ Dictionary of model hyperparameters.
3840
+ Equivalent to the model_hyperparameters specified by the user for this model in:
3841
+ `predictor.fit(..., hyperparameters={..., model_key: [..., model_hyperparameters]})`
3842
+
3843
+ """
3844
+ # TODO: Move logic into trainer?
3845
+ info_model = self.model_info(model=model)
3846
+ if output_format == "user":
3847
+ if "bagged_info" in info_model:
3848
+ hyperparameters = info_model["bagged_info"]["child_hyperparameters_user"].copy()
3849
+ if include_ag_args_ensemble and info_model["hyperparameters_user"]:
3850
+ hyperparameters["ag_args_ensemble"] = info_model["hyperparameters_user"]
3851
+ else:
3852
+ hyperparameters = info_model["hyperparameters_user"]
3853
+ elif output_format == "all":
3854
+ if "bagged_info" in info_model:
3855
+ hyperparameters = info_model["bagged_info"]["child_hyperparameters"].copy()
3856
+ if info_model["bagged_info"]["child_ag_args_fit"]:
3857
+ hyperparameters["ag_args_fit"] = info_model["bagged_info"]["child_ag_args_fit"]
3858
+ if include_ag_args_ensemble:
3859
+ bag_hyperparameters = info_model["hyperparameters"].copy()
3860
+ if info_model["ag_args_fit"]:
3861
+ bag_hyperparameters["ag_args_fit"] = info_model["ag_args_fit"]
3862
+ if bag_hyperparameters:
3863
+ hyperparameters["ag_args_ensemble"] = bag_hyperparameters
3864
+ else:
3865
+ hyperparameters = info_model["hyperparameters"]
3866
+ else:
3867
+ raise ValueError(f"output_format={output_format} is unknown!")
3868
+ return hyperparameters
3869
+
3796
3870
  # TODO: Add data argument
3797
3871
  # TODO: Add option to disable OOF generation of newly fitted models
3798
3872
  # TODO: Move code logic to learner/trainer
@@ -1,4 +1,4 @@
1
1
  """This is the autogluon version file."""
2
2
 
3
- __version__ = "1.2.1b20250218"
3
+ __version__ = "1.2.1b20250219"
4
4
  __lite__ = False
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: autogluon.tabular
3
- Version: 1.2.1b20250218
3
+ Version: 1.2.1b20250219
4
4
  Summary: Fast and Accurate ML in 3 Lines of Code
5
5
  Home-page: https://github.com/autogluon/autogluon
6
6
  Author: AutoGluon Community
@@ -41,19 +41,19 @@ Requires-Dist: scipy<1.16,>=1.5.4
41
41
  Requires-Dist: pandas<2.3.0,>=2.0.0
42
42
  Requires-Dist: scikit-learn<1.5.3,>=1.4.0
43
43
  Requires-Dist: networkx<4,>=3.0
44
- Requires-Dist: autogluon.core==1.2.1b20250218
45
- Requires-Dist: autogluon.features==1.2.1b20250218
44
+ Requires-Dist: autogluon.core==1.2.1b20250219
45
+ Requires-Dist: autogluon.features==1.2.1b20250219
46
46
  Provides-Extra: all
47
- Requires-Dist: huggingface-hub[torch]; extra == "all"
48
- Requires-Dist: xgboost<2.2,>=1.6; extra == "all"
49
- Requires-Dist: lightgbm<4.6,>=4.0; extra == "all"
50
- Requires-Dist: spacy<3.8; extra == "all"
51
- Requires-Dist: autogluon.core[all]==1.2.1b20250218; extra == "all"
52
- Requires-Dist: numpy<2.0.0,>=1.25; extra == "all"
53
- Requires-Dist: einops<0.9,>=0.7; extra == "all"
54
47
  Requires-Dist: catboost<1.3,>=1.2; extra == "all"
55
48
  Requires-Dist: torch<2.6,>=2.2; extra == "all"
49
+ Requires-Dist: spacy<3.8; extra == "all"
50
+ Requires-Dist: lightgbm<4.6,>=4.0; extra == "all"
56
51
  Requires-Dist: fastai<2.8,>=2.3.1; extra == "all"
52
+ Requires-Dist: huggingface-hub[torch]; extra == "all"
53
+ Requires-Dist: numpy<2.0.0,>=1.25; extra == "all"
54
+ Requires-Dist: xgboost<2.2,>=1.6; extra == "all"
55
+ Requires-Dist: einops<0.9,>=0.7; extra == "all"
56
+ Requires-Dist: autogluon.core[all]==1.2.1b20250219; extra == "all"
57
57
  Provides-Extra: catboost
58
58
  Requires-Dist: numpy<2.0.0,>=1.25; extra == "catboost"
59
59
  Requires-Dist: catboost<1.3,>=1.2; extra == "catboost"
@@ -66,7 +66,7 @@ Requires-Dist: imodels<1.4.0,>=1.3.10; extra == "imodels"
66
66
  Provides-Extra: lightgbm
67
67
  Requires-Dist: lightgbm<4.6,>=4.0; extra == "lightgbm"
68
68
  Provides-Extra: ray
69
- Requires-Dist: autogluon.core[all]==1.2.1b20250218; extra == "ray"
69
+ Requires-Dist: autogluon.core[all]==1.2.1b20250219; extra == "ray"
70
70
  Provides-Extra: skex
71
71
  Requires-Dist: scikit-learn-intelex<2025.1,>=2024.0; extra == "skex"
72
72
  Provides-Extra: skl2onnx
@@ -1,6 +1,6 @@
1
- autogluon.tabular-1.2.1b20250218-py3.9-nspkg.pth,sha256=cQGwpuGPqg1GXscIwt-7PmME1OnSpD-7ixkikJ31WAY,554
1
+ autogluon.tabular-1.2.1b20250219-py3.9-nspkg.pth,sha256=cQGwpuGPqg1GXscIwt-7PmME1OnSpD-7ixkikJ31WAY,554
2
2
  autogluon/tabular/__init__.py,sha256=2OXpJCvENRHubBTYNIPpHX93WWuFZzsJBtTZbNVHVas,400
3
- autogluon/tabular/version.py,sha256=7H9aiBFc3yZ4VAfYTXCxWQ-TNBEjD1nB5tqyO9XpoOs,91
3
+ autogluon/tabular/version.py,sha256=-6B9LRx5ypsiEngHly5V3KaGydGIcWNulylOlKPbR2U,91
4
4
  autogluon/tabular/configs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
5
  autogluon/tabular/configs/config_helper.py,sha256=Pb2aW9Z9w77pYKPRVZ3nBzHY3KJaiEJSJ747zZcJIVk,21132
6
6
  autogluon/tabular/configs/feature_generator_presets.py,sha256=EV5Ym8VW15q92MwOUpTi7wZFS2QooM51fLg3RdUsn-M,1223
@@ -144,7 +144,7 @@ autogluon/tabular/models/xt/xt_model.py,sha256=gimCfMeTmhAJTy4ekCI_dbK1FluJ7EQMo
144
144
  autogluon/tabular/predictor/__init__.py,sha256=zCMgjxQlWpDWnr1l1xjBCiK3rWC3N3RoD8UXBnazT74,107
145
145
  autogluon/tabular/predictor/_deprecated_methods.py,sha256=cBZjVYxY7blOj2eH1y9JsdW0n-AZtnsK4B6dzUqrTAw,3476
146
146
  autogluon/tabular/predictor/interpretable_predictor.py,sha256=5UeKgnMFsfY65tiO3kxfHBPr03lyswLrgdtjPhI0Y7Q,6934
147
- autogluon/tabular/predictor/predictor.py,sha256=cObeqYL75aqf2UNVbbY6HnO9nnJqmqyAYqgZdBYKfpM,352467
147
+ autogluon/tabular/predictor/predictor.py,sha256=DcixSFRmyk4wcfPtc4JqiGGafy4-rnk5hlNYnPmS2c8,355768
148
148
  autogluon/tabular/trainer/__init__.py,sha256=PW_PGL-tWoQzx3ES2S53bQEZOtsRWTYiM9QdOqsk0dI,38
149
149
  autogluon/tabular/trainer/abstract_trainer.py,sha256=daz6_IfYX9bvQ5c5RpbxZ9f5JytUDq2-XDO1wAXpXtk,231155
150
150
  autogluon/tabular/trainer/auto_trainer.py,sha256=FyRWM8iUJuDvw_aqV5EV_xdh_pb-nHzAvG1sbEhvs0g,8680
@@ -153,11 +153,11 @@ autogluon/tabular/trainer/model_presets/presets.py,sha256=1E-Z1FxUpyydaoEdxcTCg7
153
153
  autogluon/tabular/trainer/model_presets/presets_distill.py,sha256=MnFC2GJc6RmDBNAGbsO2XMfo3PjR8cUrZoilWW8gTYQ,3295
154
154
  autogluon/tabular/tuning/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
155
155
  autogluon/tabular/tuning/feature_pruner.py,sha256=9iNku8gVbYEkjuKlyITPJDicsNkoraaQOlINQq9iZlQ,6877
156
- autogluon.tabular-1.2.1b20250218.dist-info/LICENSE,sha256=CeipvOyAZxBGUsFoaFqwkx54aPnIKEtm9a5u2uXxEws,10142
157
- autogluon.tabular-1.2.1b20250218.dist-info/METADATA,sha256=T4lgfczkCeVP2H9DrCFruDc6VrvKALXjVI8wW6En6aw,14386
158
- autogluon.tabular-1.2.1b20250218.dist-info/NOTICE,sha256=7nPQuj8Kp-uXsU0S5so3-2dNU5EctS5hDXvvzzehd7E,114
159
- autogluon.tabular-1.2.1b20250218.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
160
- autogluon.tabular-1.2.1b20250218.dist-info/namespace_packages.txt,sha256=giERA4R78OkJf2ijn5slgjURlhRPzfLr7waIcGkzYAo,10
161
- autogluon.tabular-1.2.1b20250218.dist-info/top_level.txt,sha256=giERA4R78OkJf2ijn5slgjURlhRPzfLr7waIcGkzYAo,10
162
- autogluon.tabular-1.2.1b20250218.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
163
- autogluon.tabular-1.2.1b20250218.dist-info/RECORD,,
156
+ autogluon.tabular-1.2.1b20250219.dist-info/LICENSE,sha256=CeipvOyAZxBGUsFoaFqwkx54aPnIKEtm9a5u2uXxEws,10142
157
+ autogluon.tabular-1.2.1b20250219.dist-info/METADATA,sha256=lpqZlMU6oZvmBskcj3aWABgokqgmPlrN9b-b3UcT-Js,14386
158
+ autogluon.tabular-1.2.1b20250219.dist-info/NOTICE,sha256=7nPQuj8Kp-uXsU0S5so3-2dNU5EctS5hDXvvzzehd7E,114
159
+ autogluon.tabular-1.2.1b20250219.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
160
+ autogluon.tabular-1.2.1b20250219.dist-info/namespace_packages.txt,sha256=giERA4R78OkJf2ijn5slgjURlhRPzfLr7waIcGkzYAo,10
161
+ autogluon.tabular-1.2.1b20250219.dist-info/top_level.txt,sha256=giERA4R78OkJf2ijn5slgjURlhRPzfLr7waIcGkzYAo,10
162
+ autogluon.tabular-1.2.1b20250219.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
163
+ autogluon.tabular-1.2.1b20250219.dist-info/RECORD,,