bdwilliamson / vimpy Goto Github PK
View Code? Open in Web Editor NEWPerform inference on algorithm-agnostic variable importance in Python
Home Page: https://pypi.org/project/vimpy/
License: MIT License
Perform inference on algorithm-agnostic variable importance in Python
Home Page: https://pypi.org/project/vimpy/
License: MIT License
Hi!
I am wondering if there is an equivalent to the R merge_vim
function in vimpy?
correct me if I'm wrong, but I don't believe the current code is setup to calculate values for feature groups.
Can you confirm I'm understanding this correctly? To extend the code for groups, we would want to select subsets over feature groups rather than individual features. Then when measuring predictiveness, we include all features that are part of the selected feature groups. So for example, if we have groups:
vitals = [blood_pressure, heart_rate]
labs = [sodium, potassium, sugar]
diagnoses = [kidney, heart, liver]
If S = [0, 1], then we train a model with blood_pressure, heart rate, sodium, potassium, and sugar.
Would we need to normalize anything?
Hello - I am trying to use your package for an analysis. I loaded the "Boston" dataset and tried running the "vim" function for groups of covariates. I get the following warning:
**> neigh.vim <- vim(full.fit, fit ~ x, data = Boston3, y = Boston3$medv,
s = c(1, 2, 3, 4, 10, 11, 12, 13), SL.library = learners.2)
Warning messages:
1: In if (standardized) { :
the condition has length > 1 and only the first element will be used
2: In if (standardized) { :
the condition has length > 1 and only the first element will be used
3: In if (standardized) { :
the condition has length > 1 and only the first element will be used**
Would appreciate your advice on whether this is something to worry about.
Best,
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():
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.