Git Product home page Git Product logo

nam's Introduction

Neural Additive Models for InterpretML

PyPI Python Version GitHub license

This repo is forked from AmrMKayid/nam to be adapted for integration of NAMs and Multitask NAMs into InterpretML.

Neural Additive Models (NAMs) are an interpretable ("glassbox") machine learning technique that jointly learns a separate network on each input feature. The technique is described in Neural Additive Models: Interpretable Machine Learning with Neural Nets.

Please see https://github.com/google-research/google-research/tree/master/neural_additive_models for the original TensorFlow implementation of NAMs used in the paper.

Example Usage

from nam.wrapper import NAMClassifier
import sklearn.metrics as sk_metrics

model = NAMClassifier(
            num_epochs=1000,
            num_learners=20,
            metric='auroc',
            early_stop_mode='max',
            monitor_loss=False,
            n_jobs=10,
            random_state=random_state
        )

model.fit(X_train, y_train)
pred = model.predict_proba(X_test)
sk_metrics.roc_auc_score(y_test, pred)

See '''examples.ipynb''' for more details.

Acknowledgements

This repo, which was created by Levi Melnick, forks AmrMKayid/nam, which is maintained by Amr Kayid and Nicholas Frosst. The code extends and builds on top of their PyTorch implementation.

@article{agarwal2021neural,
  title={Neural additive models: Interpretable machine learning with neural nets},
  author={Agarwal, Rishabh and Melnick, Levi and Frosst, Nicholas and Zhang, Xuezhou and Lengerich, Ben and Caruana, Rich and Hinton, Geoffrey E},
  journal={Advances in Neural Information Processing Systems},
  volume={34},
  year={2021}
}

nam's People

Contributors

amrmkayid avatar lemeln avatar nickfrosst avatar albertyusun avatar harsha-nori avatar

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.