Compare commits

..

5 Commits

5 changed files with 7 additions and 6 deletions

View File

@ -1,3 +1,5 @@
# Odte
![CI](https://github.com/Doctorado-ML/Odte/workflows/CI/badge.svg) ![CI](https://github.com/Doctorado-ML/Odte/workflows/CI/badge.svg)
[![CodeQL](https://github.com/Doctorado-ML/Odte/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/Doctorado-ML/Odte/actions/workflows/codeql-analysis.yml) [![CodeQL](https://github.com/Doctorado-ML/Odte/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/Doctorado-ML/Odte/actions/workflows/codeql-analysis.yml)
[![codecov](https://codecov.io/gh/Doctorado-ML/odte/branch/master/graph/badge.svg)](https://codecov.io/gh/Doctorado-ML/odte) [![codecov](https://codecov.io/gh/Doctorado-ML/odte/branch/master/graph/badge.svg)](https://codecov.io/gh/Doctorado-ML/odte)
@ -6,6 +8,4 @@
![https://img.shields.io/badge/python-3.11%2B-blue](https://img.shields.io/badge/python-3.11%2B-brightgreen) ![https://img.shields.io/badge/python-3.11%2B-blue](https://img.shields.io/badge/python-3.11%2B-brightgreen)
[![DOI](https://zenodo.org/badge/271595804.svg)](https://zenodo.org/badge/latestdoi/271595804) [![DOI](https://zenodo.org/badge/271595804.svg)](https://zenodo.org/badge/latestdoi/271595804)
# Odte
Oblique Decision Tree Ensemble classifier based on [STree](https://github.com/doctorado-ml/stree) nodes. Oblique Decision Tree Ensemble classifier based on [STree](https://github.com/doctorado-ml/stree) nodes.

View File

@ -272,6 +272,6 @@ class Odte(BaseEnsemble, ClassifierMixin):
check_is_fitted(self, "estimators_") check_is_fitted(self, "estimators_")
return self.depth_ return self.depth_
def nodes_leaves(self) -> Tuple[float, float]: def nodes_leaves(self) -> Tuple[int, int]:
check_is_fitted(self, "estimators_") check_is_fitted(self, "estimators_")
return self.nodes_, self.leaves_ return (self.get_nodes(), self.get_leaves())

View File

@ -1 +1 @@
__version__ = "1.0.0" __version__ = "1.0.0-1"

View File

@ -40,7 +40,7 @@ doc = ["sphinx", "myst-parser", "sphinx_rtd_theme", "sphinx-autodoc-typehints"]
[project.urls] [project.urls]
Home = "https://github.com/doctorado-ml/odte" Home = "https://github.com/doctorado-ml/odte"
Docs = "https://odte.readthedocs.io/en/latest/index.html" Docs = "https://odte.readthedocs.io"
[tool.hatch.version] [tool.hatch.version]
path = "odte/_version.py" path = "odte/_version.py"

View File

@ -1 +1,2 @@
scikit-learn==1.5.2
stree>=1.4 stree>=1.4