Git Product home page Git Product logo

microsoft / augmented-interpretable-models Goto Github PK

View Code? Open in Web Editor NEW
37.0 7.0 8.0 193.92 MB

Interpretable and efficient predictors using pre-trained language models. Scikit-learn compatible.

Home Page: https://www.nature.com/articles/s41467-023-43713-1

License: MIT License

Jupyter Notebook 94.14% Python 4.71% Shell 0.01% HTML 1.14%
ai artificial-intelligence deep-learning explainability interpretability language-model linear linear-models machine-learning ml

augmented-interpretable-models's Issues

Multiclassification case

Hi, thank you for providing this repo!

I want to use emb-gam for multiclassification (4 classes, embedding size is 768), but I have the following error when the linear coefficients are calculated : "matmul: Input operand 1 has a mismatch in its core dimension 0, with gufunc signature (n?,k),(k,m?)->(n?,m?) (size 4 is different from 768)"

(line 199 in cache_linear_coefs)

The error is corrected with linear_coef = embs @ coef_embs.T instead of linear_coef = embs @ coef_embs

Now I'm looking for a way to correctly predict the classes (I will probably modify _predict_cached function).

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.