treeexplainer-study | Code and documentation for experiments in the TreeExplainer paper | Machine Learning library
kandi X-RAY | treeexplainer-study Summary
kandi X-RAY | treeexplainer-study Summary
Code and documentation for experiments in the TreeExplainer paper
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of treeexplainer-study
treeexplainer-study Key Features
treeexplainer-study Examples and Code Snippets
Community Discussions
Trending Discussions on treeexplainer-study
QUESTION
I have a genetic dataset where I have 600 rows of genes by 11 features I use in machine learning in a regression classification to predict disease-causing genes.
I am trying to view the hierarchical clustering of rows that is performed within the shap package. I am specifically running the shap heatmap - shap.plots.heatmap(shap_values, max_display=11)
- and trying to view the data for the rows/genes being clustered in this plot (example plot shown here: https://shap.readthedocs.io/en/latest/example_notebooks/api_examples/plots/heatmap.html).
The code I run to try and get the clustering performed within shap (within the shap.plots.heatmap()
function) is:
ANSWER
Answered 2021-Mar-14 at 08:55As pointed by @user12750353 that scipy.spatial.distance.pdist takes ndarray and shap_values
is type of shap._explanation.Explanation
shap_values
object as an attribute values
which is the result in ndarray format that can be used with scipy.spatial.distance.pdist
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install treeexplainer-study
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page