-
Notifications
You must be signed in to change notification settings - Fork 5
Description
Hi I'm currently trying to use spvim() from vimpy for its ability to accomodate arbitrary prediction functions as oppose to sp_vim() in R where as far as I can see only learners from the SL library can be used. When trying to install version 2.1 I however encountered the following error:
ERROR: Could not find a version that satisfies the requirement scipy.stats (from vimpy) (from versions: none)
ERROR: No matching distribution found for scipy.stats
This seems to be due to the 'scipy.stats' in line 20 in the file "setup.py". Maybe it is there for a reason but after removing it the installation worked fine.
Additionally when using the function spvim() I also encountered a few errors. It could also be that I'm using it in a wrong way however a few potential errors (which unfortunately did not entirely resolve the problems) in vimpy/vimpy/spvim.py are:
for method get_influence_function():
- [line 109] in self.v.shape[0] the underscore after the v is missing => self.v_.shape[0]
after including the underscore: - [line 109] in self.v_[self.v_.shape[0]] the index is out of bound maybe this should be self.v_[self.v_.shape[0]-1]?
- [line 110] self.z_counts_ does not exist probably needs to be instantiated under init and defined during get_point_est()?
After incorporating these changes get_influence_function() worked, however, the methods get_ses() and get_cis() seem to have further issues i.e. problems with the indices in the shapley_se() function etc.
While I'm not sure about all of the above propositions they might still be of some use.
Kind regards.