Giter Club home page Giter Club logo

Comments (8)

dfalbel avatar dfalbel commented on June 14, 2024

I think this can be related to a problem in the torch installation. Can you check that you can do torch::torch_tensor(1) in that machine?

from tabnet.

G3Jram avatar G3Jram commented on June 14, 2024

Hi,

Its giving the same error msg when i do that. "The previous R session was abnormally terminated due to an unexpected crash.

from tabnet.

cregouby avatar cregouby commented on June 14, 2024

Hello @G3Jram ,
so here you encounter a torch:: installation issue, not a tabnet:: issue. Torch is the underlying deeplearning framework of Tabnet. I think it is worth for you to reoppen the issue in here: https://github.com/mlverse/torch/issues, if the problem remains after you check all the installation prerequisite in https://torch.mlverse.org/docs/articles/installation.html.
Hope it will helps you enjoy using Tabnet.

from tabnet.

G3Jram avatar G3Jram commented on June 14, 2024

Hi,

I have succeeded in implementing tabnet in python instead. Waiting for the torch error to get sorted on the R side..

However, after building the model if i want to look at the feature importances, im not too sure how to do it.

Tabnet doesnt need shap to understand the features right?..

I actually want to plot the features by importance.

Please help.

from tabnet.

cregouby avatar cregouby commented on June 14, 2024

Hello @G3Jram ,
the R implementation includes the tabnet_explain() function with associated plot that will give you feature importance for each prediction as documented in https://mlverse.github.io/tabnet/articles/interpretation.html. This provides you the internal model feature importance, so you don't have to suffer the drawbacks of surrogate models like shap.

from tabnet.

skeydan avatar skeydan commented on June 14, 2024

we have a post on that in fact: https://blogs.rstudio.com/ai/posts/2021-02-11-tabnet/

from tabnet.

G3Jram avatar G3Jram commented on June 14, 2024

Hi,

Sorry if i wasnt clear. I am after the feature importance in python not R for now as i still face torch installation issues in R.

Any help in python would be good.

Thanks.

from tabnet.

dfalbel avatar dfalbel commented on June 14, 2024

You can find examples for the python API here: https://github.com/dreamquark-ai/tabnet/blob/develop/forest_example.ipynb

Also, I think for questions on the Python interface It's better if you ask in their repository: https://github.com/dreamquark-ai/tabnet

from tabnet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.