structureboost 0.5.0__tar.gz → 0.7.0__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.
- {structureboost-0.5.0 → structureboost-0.7.0}/LICENSE +2 -2
- structureboost-0.7.0/PKG-INFO +46 -0
- structureboost-0.7.0/README.md +23 -0
- structureboost-0.7.0/pyproject.toml +30 -0
- {structureboost-0.5.0 → structureboost-0.7.0}/setup.py +6 -0
- {structureboost-0.5.0 → structureboost-0.7.0}/structureboost/__init__.py +3 -1
- {structureboost-0.5.0 → structureboost-0.7.0}/structureboost/coarsage.c +12852 -10564
- {structureboost-0.5.0 → structureboost-0.7.0}/structureboost/graphs.c +12895 -11634
- structureboost-0.7.0/structureboost/pdf_conformal.c +16957 -0
- {structureboost-0.5.0 → structureboost-0.7.0}/structureboost/pdf_discrete.c +9913 -6788
- {structureboost-0.5.0 → structureboost-0.7.0}/structureboost/pdf_group.c +8068 -6302
- structureboost-0.7.0/structureboost/pdf_set.c +12971 -0
- {structureboost-0.5.0 → structureboost-0.7.0}/structureboost/prob_regr_unit.c +3274 -2892
- {structureboost-0.5.0 → structureboost-0.7.0}/structureboost/prob_regressor.c +6874 -6590
- {structureboost-0.5.0 → structureboost-0.7.0}/structureboost/structure_dt.c +21661 -18776
- {structureboost-0.5.0 → structureboost-0.7.0}/structureboost/structure_dt_multi.c +6300 -5571
- {structureboost-0.5.0 → structureboost-0.7.0}/structureboost/structure_gb.c +17623 -15398
- {structureboost-0.5.0 → structureboost-0.7.0}/structureboost/structure_gb_multi.c +14713 -12191
- {structureboost-0.5.0 → structureboost-0.7.0}/structureboost/tests/test_shap.py +2 -2
- structureboost-0.7.0/structureboost.egg-info/PKG-INFO +46 -0
- {structureboost-0.5.0 → structureboost-0.7.0}/structureboost.egg-info/SOURCES.txt +3 -0
- structureboost-0.7.0/structureboost.egg-info/requires.txt +11 -0
- {structureboost-0.5.0 → structureboost-0.7.0}/structureboost.egg-info/top_level.txt +2 -0
- structureboost-0.5.0/PKG-INFO +0 -15
- structureboost-0.5.0/pyproject.toml +0 -16
- structureboost-0.5.0/structureboost.egg-info/PKG-INFO +0 -15
- structureboost-0.5.0/structureboost.egg-info/requires.txt +0 -11
- {structureboost-0.5.0 → structureboost-0.7.0}/README.rst +0 -0
- {structureboost-0.5.0 → structureboost-0.7.0}/setup.cfg +0 -0
- {structureboost-0.5.0 → structureboost-0.7.0}/structureboost/tests/__init__.py +0 -0
- {structureboost-0.5.0 → structureboost-0.7.0}/structureboost/tests/test_basics.py +0 -0
- {structureboost-0.5.0 → structureboost-0.7.0}/structureboost/tests/test_coarsage_1.py +0 -0
- {structureboost-0.5.0 → structureboost-0.7.0}/structureboost/tests/test_dt.py +0 -0
- {structureboost-0.5.0 → structureboost-0.7.0}/structureboost/tests/test_gb.py +0 -0
- {structureboost-0.5.0 → structureboost-0.7.0}/structureboost/tests/test_graphs.py +0 -0
- {structureboost-0.5.0 → structureboost-0.7.0}/structureboost/tests/test_multi_1.py +0 -0
- {structureboost-0.5.0 → structureboost-0.7.0}/structureboost/tests/test_pdfgroup1.py +0 -0
- {structureboost-0.5.0 → structureboost-0.7.0}/structureboost/tests/test_predict_options.py +0 -0
- {structureboost-0.5.0 → structureboost-0.7.0}/structureboost/tests/test_prob_reg_1.py +0 -0
- {structureboost-0.5.0 → structureboost-0.7.0}/structureboost/utils.py +0 -0
- {structureboost-0.5.0 → structureboost-0.7.0}/structureboost.egg-info/dependency_links.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2025 Brian Lucena
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
18
18
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
20
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: structureboost
|
|
3
|
+
Version: 0.7.0
|
|
4
|
+
Summary: Gradient Boosting and Probabilistic Regression with categorical structure
|
|
5
|
+
Author-email: Brian Lucena <brian@numeristical.com>
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Classifier: Programming Language :: Python :: 3
|
|
8
|
+
Classifier: Operating System :: OS Independent
|
|
9
|
+
Requires-Python: >=3.8
|
|
10
|
+
Description-Content-Type: text/markdown
|
|
11
|
+
License-File: LICENSE
|
|
12
|
+
Requires-Dist: pandas>=1.3
|
|
13
|
+
Requires-Dist: numpy>=1.23.5
|
|
14
|
+
Requires-Dist: scipy>=1.6
|
|
15
|
+
Requires-Dist: matplotlib>=1.0
|
|
16
|
+
Requires-Dist: joblib>=0.14.1
|
|
17
|
+
Requires-Dist: ml_insights>=1.0.5
|
|
18
|
+
Provides-Extra: dev
|
|
19
|
+
Requires-Dist: Cython>=3.1.0b1; extra == "dev"
|
|
20
|
+
Requires-Dist: build; extra == "dev"
|
|
21
|
+
Requires-Dist: setuptools; extra == "dev"
|
|
22
|
+
Dynamic: license-file
|
|
23
|
+
|
|
24
|
+
# StructureBoost
|
|
25
|
+
|
|
26
|
+
StructureBoost is a package to do Gradient Boosting in a manner that exploits the **structure** of categorical variables.
|
|
27
|
+
|
|
28
|
+
Have you ever used "US state" as a variable in a prediction problem and thought "Why can't my algorithm use the geography of the states to make better predictions?"
|
|
29
|
+
|
|
30
|
+
Or you've used the month of the year as a predictor, but noticed that January should border December the same way that June borders July. (or hour of the day, or day of the week)
|
|
31
|
+
|
|
32
|
+
StructureBoost can help. Read the documentation and references below. Or dive into some [examples](https://github.com/numeristical/structureboost/tree/master/examples)
|
|
33
|
+
|
|
34
|
+
## Video Lectures
|
|
35
|
+
|
|
36
|
+
There are some explanatory videos on the [Numeristical Youtube Channel](https://www.youtube.com/channel/UCfsbASar8nsLs4NbhQwuaVg)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
## Documentation
|
|
40
|
+
[Read the Docs](https://structureboost.readthedocs.io/)
|
|
41
|
+
|
|
42
|
+
## References:
|
|
43
|
+
|
|
44
|
+
Lucena, B. "Exploiting Categorical Structure with Tree-Based Methods. Proceedings of the Twenty Third International Conference on Artificial Intelligence and Statistics, PMLR 108:2949-2958, 2020. [http://proceedings.mlr.press/v108/lucena20a/lucena20a.pdf](http://proceedings.mlr.press/v108/lucena20a/lucena20a.pdf)
|
|
45
|
+
|
|
46
|
+
Lucena, B. "StructureBoost: Efficient Gradient Boosting for Structured Categorical Variables." [https://arxiv.org/abs/2007.04446](https://arxiv.org/abs/2007.04446)
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# StructureBoost
|
|
2
|
+
|
|
3
|
+
StructureBoost is a package to do Gradient Boosting in a manner that exploits the **structure** of categorical variables.
|
|
4
|
+
|
|
5
|
+
Have you ever used "US state" as a variable in a prediction problem and thought "Why can't my algorithm use the geography of the states to make better predictions?"
|
|
6
|
+
|
|
7
|
+
Or you've used the month of the year as a predictor, but noticed that January should border December the same way that June borders July. (or hour of the day, or day of the week)
|
|
8
|
+
|
|
9
|
+
StructureBoost can help. Read the documentation and references below. Or dive into some [examples](https://github.com/numeristical/structureboost/tree/master/examples)
|
|
10
|
+
|
|
11
|
+
## Video Lectures
|
|
12
|
+
|
|
13
|
+
There are some explanatory videos on the [Numeristical Youtube Channel](https://www.youtube.com/channel/UCfsbASar8nsLs4NbhQwuaVg)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
## Documentation
|
|
17
|
+
[Read the Docs](https://structureboost.readthedocs.io/)
|
|
18
|
+
|
|
19
|
+
## References:
|
|
20
|
+
|
|
21
|
+
Lucena, B. "Exploiting Categorical Structure with Tree-Based Methods. Proceedings of the Twenty Third International Conference on Artificial Intelligence and Statistics, PMLR 108:2949-2958, 2020. [http://proceedings.mlr.press/v108/lucena20a/lucena20a.pdf](http://proceedings.mlr.press/v108/lucena20a/lucena20a.pdf)
|
|
22
|
+
|
|
23
|
+
Lucena, B. "StructureBoost: Efficient Gradient Boosting for Structured Categorical Variables." [https://arxiv.org/abs/2007.04446](https://arxiv.org/abs/2007.04446)
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
name = "structureboost"
|
|
5
|
+
version = "0.7.0"
|
|
6
|
+
dependencies = ["pandas>=1.3",
|
|
7
|
+
"numpy>=1.23.5",
|
|
8
|
+
"scipy>=1.6",
|
|
9
|
+
"matplotlib>=1.0",
|
|
10
|
+
"joblib>=0.14.1",
|
|
11
|
+
"ml_insights>=1.0.5"
|
|
12
|
+
]
|
|
13
|
+
authors = [
|
|
14
|
+
{ name="Brian Lucena", email="brian@numeristical.com" },
|
|
15
|
+
]
|
|
16
|
+
description = "Gradient Boosting and Probabilistic Regression with categorical structure"
|
|
17
|
+
readme = "README.md"
|
|
18
|
+
requires-python = ">=3.8"
|
|
19
|
+
classifiers = [
|
|
20
|
+
"Programming Language :: Python :: 3",
|
|
21
|
+
"Operating System :: OS Independent",
|
|
22
|
+
]
|
|
23
|
+
license = "MIT"
|
|
24
|
+
license-files = ["LICEN[CS]E*"]
|
|
25
|
+
|
|
26
|
+
[project.optional-dependencies]
|
|
27
|
+
dev = ["Cython>=3.1.0b1", "build", "setuptools"]
|
|
28
|
+
|
|
29
|
+
[build-system]
|
|
30
|
+
requires = ["setuptools", "wheel", "Cython>=3.1.0b1","numpy>=2.0.0","scipy>=1.15",]
|
|
@@ -23,6 +23,9 @@ setup(
|
|
|
23
23
|
Extension("pdf_group",
|
|
24
24
|
["structureboost/pdf_group.c"],
|
|
25
25
|
include_dirs=[numpy.get_include()]),
|
|
26
|
+
Extension("pdf_set",
|
|
27
|
+
["structureboost/pdf_set.c"],
|
|
28
|
+
include_dirs=[numpy.get_include()]),
|
|
26
29
|
Extension("prob_regr_unit",
|
|
27
30
|
["structureboost/prob_regr_unit.c"],
|
|
28
31
|
include_dirs=[numpy.get_include()]),
|
|
@@ -32,6 +35,9 @@ setup(
|
|
|
32
35
|
Extension("coarsage",
|
|
33
36
|
["structureboost/coarsage.c"],
|
|
34
37
|
include_dirs=[numpy.get_include()]),
|
|
38
|
+
Extension("pdf_conformal",
|
|
39
|
+
["structureboost/pdf_conformal.c"],
|
|
40
|
+
include_dirs=[numpy.get_include()]),
|
|
35
41
|
Extension("structure_dt_multi",
|
|
36
42
|
["structureboost/structure_dt_multi.c"],
|
|
37
43
|
include_dirs=[numpy.get_include()])],
|
|
@@ -12,6 +12,8 @@ from prob_regressor import PrestoBoost
|
|
|
12
12
|
from coarsage import Coarsage
|
|
13
13
|
from pdf_discrete import PdfDiscrete, average_densities
|
|
14
14
|
from pdf_group import PdfGroup, log_loss_pdf, test_between_quantiles_pdf, test_in_pred_regions
|
|
15
|
+
from pdf_set import PdfSet
|
|
16
|
+
from pdf_conformal import PdfConformalizer
|
|
15
17
|
from .utils import get_basic_config, apply_defaults, default_config_dict, ice_plot, log_loss
|
|
16
18
|
|
|
17
|
-
__version__ = '0.
|
|
19
|
+
__version__ = '0.7.0'
|