Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ENH] Allow HonestForest to sample higher than max_samples # of bootstraps #206

Merged
merged 52 commits into from
Jan 31, 2024

Conversation

adam2392
Copy link
Collaborator

@adam2392 adam2392 commented Jan 30, 2024

Supersedes #204

Changes proposed in this pull request:

Before submitting

  • I've read and followed all steps in the Making a pull request
    section of the CONTRIBUTING docs.
  • I've updated or added any relevant docstrings following the syntax described in the
    Writing docstrings section of the CONTRIBUTING docs.
  • If this PR fixes a bug, I've added a test that will fail without my fix.
  • If this PR adds a new feature, I've added tests that sufficiently cover my new functionality.

After submitting

  • All GitHub Actions jobs for my pull request have passed.

PSSF23 and others added 30 commits January 16, 2024 14:01
Signed-off-by: Adam Li <[email protected]>
Signed-off-by: Adam Li <[email protected]>
Signed-off-by: Adam Li <[email protected]>
Signed-off-by: Adam Li <[email protected]>
Signed-off-by: Adam Li <[email protected]>
Signed-off-by: Adam Li <[email protected]>
Signed-off-by: Adam Li <[email protected]>
Signed-off-by: Adam Li <[email protected]>
Signed-off-by: Adam Li <[email protected]>
Signed-off-by: Adam Li <[email protected]>
Signed-off-by: Adam Li <[email protected]>
Signed-off-by: Adam Li <[email protected]>
Signed-off-by: Adam Li <[email protected]>
Signed-off-by: Adam Li <[email protected]>
Signed-off-by: Adam Li <[email protected]>
Signed-off-by: Adam Li <[email protected]>
Signed-off-by: Adam Li <[email protected]>
Signed-off-by: Adam Li <[email protected]>
Signed-off-by: Adam Li <[email protected]>
Signed-off-by: Adam Li <[email protected]>
Signed-off-by: Adam Li <[email protected]>
Copy link
Collaborator Author

@adam2392 adam2392 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • build_hyppo_oob_forest and HonestForestClassifier should work together to make the predictions

@adam2392 adam2392 requested review from sampan501 and PSSF23 January 30, 2024 20:54
@adam2392 adam2392 requested review from SUKI-O and YuxinB January 30, 2024 21:23
Copy link

codecov bot commented Jan 30, 2024

Codecov Report

Attention: 61 lines in your changes are missing coverage. Please review.

Comparison is base (7fc517e) 89.13% compared to head (ac440b9) 88.29%.
Report is 2 commits behind head on main.

Files Patch % Lines
sktree/stats/forestht.py 6.66% 28 Missing ⚠️
sktree/ensemble/_honest_forest.py 74.15% 23 Missing ⚠️
sktree/stats/utils.py 30.00% 7 Missing ⚠️
sktree/tree/_honest_tree.py 88.46% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #206      +/-   ##
==========================================
- Coverage   89.13%   88.29%   -0.84%     
==========================================
  Files          50       50              
  Lines        4492     4615     +123     
==========================================
+ Hits         4004     4075      +71     
- Misses        488      540      +52     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@PSSF23 PSSF23 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't recognize the SAS98 name, we have S@98? Also, the metric should be included in POSITIVE_METRICS and POSTERIOR_FUNCTIONS

@YuxinB
Copy link
Member

YuxinB commented Jan 31, 2024

So this is not in pip now right? Would you mind letting us know once it can be install with pip?

@adam2392
Copy link
Collaborator Author

Sure. It will be on pip once this is merged. But would prefer everyone's okay before doing so as releasing on pip takes a while of my time.

@adam2392 adam2392 requested a review from YuxinB January 31, 2024 05:03
@adam2392 adam2392 merged commit 15542ce into main Jan 31, 2024
24 of 26 checks passed
@adam2392 adam2392 deleted the maxsamples branch January 31, 2024 05:27
@adam2392
Copy link
Collaborator Author

adam2392 commented Jan 31, 2024

I'm going to merge this in for now for the sake of getting it onto pypi, but I cannot guarantee no mistakes and would highly suggest reviewing the code before running any exps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants