Skip to content

Honest Tree/Forest Classifier Intialization Issue #328

@ryanhausen

Description

@ryanhausen

Checklist

  • I have verified that the issue exists against the main branch.
  • I have read the relevant section in the contribution guide on reporting bugs.
  • I have checked the issues list for similar or identical bug reports.
  • I have checked the pull requests list for existing proposed fixes.
  • I have checked the CHANGELOG and the commit log to find out if the bug was already fixed in the main branch.
  • I have included in the "Description" section below a traceback from any exceptions related to this bug.
  • I have included in the "Related issues or possible duplicates" section beloew all related issues and possible duplicate issues (If there are none, check this box anyway).
  • I have included in the "Environment" section below the name of the operating system and Python version that I was using when I discovered this bug.
  • I have included in the "Environment" section below the output of pip freeze.
  • I have included in the "Steps to reproduce" section below a minimally reproducible example.

Description

Python traceback:

FAILED treeple/tests/test_honest_forest.py::test_sklearn_compatible_estimator[HonestForestClassifier(bootstrap=False,n_estimators=10,random_state=0)-check_do_not_raise_errors_in_init_or_set_params] - ValueError: Invalid parameter 'tree_estimator_params' for estimator HonestForestClassifier(bootstrap=-1, ccp_alpha=-1, class_weight=-1,
FAILED treeple/tree/tests/test_honest_tree.py::test_sklearn_compatible_estimator[HonestTreeClassifier(random_state=0)-check_do_not_raise_errors_in_init_or_set_params] - ValueError: Invalid parameter 'tree_estimator_params' for estimator HonestTreeClassifier(ccp_alpha=-1, class_weight=-1, criterion=-1,
FAILED treeple/tree/tests/test_honest_tree.py::test_sklearn_compatible_estimator[HonestTreeClassifier(random_state=0,tree_estimator=DecisionTreeClassifier())-check_do_not_raise_errors_in_init_or_set_params] - ValueError: Invalid parameter 'tree_estimator_params' for estimator HonestTreeClassifier(ccp_alpha=-1, class_weight=-1, criterion=-1,

Related issues or possible duplicates

  • None

Environment

OS: Linux

Python version: 3.9.20

Output of pip freeze:

Bottleneck==1.4.0
build==1.2.2
click==8.1.7
cloudpickle==3.0.0
colorama @ file:///home/conda/feedstock_root/build_artifacts/colorama_1666700638685/work
coverage==7.6.1
Cython==3.0.11
doit==0.36.0
exceptiongroup @ file:///home/conda/feedstock_root/build_artifacts/exceptiongroup_1720869315914/work
flaky==3.8.1
importlib_metadata==8.5.0
iniconfig @ file:///home/conda/feedstock_root/build_artifacts/iniconfig_1673103042956/work
joblib==1.4.2
markdown-it-py==3.0.0
mdurl==0.1.2
memory-profiler==0.61.0
meson==1.5.2
meson-python==0.16.0
ninja==1.11.1.1
numpy==2.0.2
packaging @ file:///home/conda/feedstock_root/build_artifacts/packaging_1718189413536/work
pandas==2.2.3
pluggy @ file:///home/conda/feedstock_root/build_artifacts/pluggy_1713667077545/work
psutil==6.0.0
pydevtool==0.3.0
Pygments==2.18.0
pyproject-metadata==0.8.0
pyproject_hooks==1.1.0
pytest @ file:///home/conda/feedstock_root/build_artifacts/pytest_1725977232342/work
pytest-cov==5.0.0
python-dateutil==2.9.0.post0
pytz==2024.2
rich==13.8.1
rich-click==1.8.3
scikit-learn==1.6.dev0
scipy==1.13.1
six==1.16.0
spin==0.12
threadpoolctl==3.5.0
tomli @ file:///home/conda/feedstock_root/build_artifacts/tomli_1644342247877/work
tqdm==4.66.5
typing_extensions==4.12.2
tzdata==2024.2
zipp==3.20.2

Steps to reproduce

Example source:

Follow the instructions in developing.md on a fresh repo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions