forest-confidence-interval icon indicating copy to clipboard operation
forest-confidence-interval copied to clipboard

cannot import name '_get_n_samples_bootstrap'

Open dlfosterbot opened this issue 4 years ago • 3 comments

Hi folks, I'm trying to use fci but when I run: import forestci as fci

I get:

/opt/conda/lib/python3.6/site-packages/forestci/forestci.py in 9 import copy 10 from .calibration import calibrateEB ---> 11 from sklearn.ensemble.forest import _generate_sample_indices, _get_n_samples_bootstrap 12 from .due import _due, _BibTeX 13

ImportError: cannot import name '_get_n_samples_bootstrap'

dlfosterbot avatar Mar 31 '21 15:03 dlfosterbot

Changing from sklearn.ensemble.forest import _generate_sample_indices, _get_n_samples_bootstrap to from sklearn.ensemble._forest import _generate_sample_indices, _get_n_samples_bootstrap in forestci.py seems to fix the issue.

whirgod avatar Apr 04 '21 10:04 whirgod

Sorry about this. This is already updated in master, but we need to cut a release for this fix to make it to users. I will try do that tonight.

arokem avatar Apr 04 '21 13:04 arokem

Do you have an update on when this change will be released? Thank you

wrightjonathan avatar Apr 07 '21 12:04 wrightjonathan