shenwanxiang / bidd-aggmap

Jigsaw-like AggMap: A Robust and Explainable Multi-Channel Omics Deep Learning Tool
https://bidd-aggmap.readthedocs.io/en/latest/
GNU General Public License v3.0
34 stars 5 forks source link

Error when using simply_explainer? #8

Closed ivy-yuan closed 2 years ago

ivy-yuan commented 2 years ago

I'm using aggmap to solve a binary classification problem. I followed the step and code exactly as what is showing, but I was faced up an error when using simply_explainer function. Here is what the error shows. Could anyone help me with this issue?

图片

shenwanxiang commented 2 years ago

I'm using aggmap to solve a binary classification problem. I followed the step and code exactly as what is showing, but I was faced up an error when using simply_explainer function. Here is what the error shows. Could anyone help me with this issue?

图片

Hi there! I think this is because your mp object is too old. You try using the new code to generate the mp object. Do remember to fit your mp object using the data

shenwanxiang commented 2 years ago

As you can see, the attribute "feature_names_reshape" only available when your mp object is fitted by the data: https://github.com/shenwanxiang/bidd-aggmap/blob/master/aggmap/map.py#L420