JakeColtman / bartpy

Bayesian Additive Regression Trees For Python
https://jakecoltman.github.io/bartpy/
MIT License
219 stars 44 forks source link

Cannot import bartpy.samplers #37

Closed dsvolk closed 5 years ago

dsvolk commented 5 years ago
from bartpy.sklearnmodel import SklearnModel
from bartpy.featureselection import SelectNullDistributionThreshold, SelectSplitProportionThreshold
from bartpy.diagnostics.features import *

ModuleNotFoundError Traceback (most recent call last)

in ----> 1 from bartpy.sklearnmodel import SklearnModel 2 from bartpy.featureselection import SelectNullDistributionThreshold, SelectSplitProportionThreshold 3 from bartpy.diagnostics.features import * ~/miniconda3/envs/viz/lib/python3.7/site-packages/bartpy/sklearnmodel.py in 9 from bartpy.data import Data 10 from bartpy.model import Model ---> 11 from bartpy.samplers.leafnode import LeafNodeSampler 12 from bartpy.samplers.modelsampler import ModelSampler, Chain 13 from bartpy.samplers.schedule import SampleSchedule ModuleNotFoundError: No module named 'bartpy.samplers' `from bartpy.samplers import *` ModuleNotFoundError Traceback (most recent call last) in ----> 1 from bartpy.samplers import * ModuleNotFoundError: No module named 'bartpy.samplers'
dsvolk commented 5 years ago

Tried both with pip install bartpy version, and with 'v4' branch. Same result.

scottrblock commented 5 years ago

Hi @trivialfis @dsvolk, I'm getting the same error with version 0.0.2. Any ideas how to fix?

mkyl commented 5 years ago

I'm also getting this issue with 0.0.2

eloneill commented 5 years ago

I tried this with just pip install bartpy and got this error. Reinstalled with pip install git+https://github.com/JakeColtman/bartpy.git --upgrade and it worked, incase anyone else is having this issue.

watson-sam commented 2 years ago

Any chance of this getting into the master branch / release code?

ItamarMushkinPagaya commented 2 years ago

I got the same issue as @eloneill (and same solution)