Giter Club home page Giter Club logo

dp_lazy_pi's Introduction

DP_lazy_PI

Description

This repository contains the code for the paper "Fast, Distribution-free Predictive Inference for Neural Networks with Coverage Guarantees". The paper introduces a novel, computationally-efficient algorithm for predictive inference (PI) that requires no distributional assumptions on the data and can be computed faster than existing bootstrap-type methods for neural networks.

Installation

pip3 install -r requirements.txt
python3 main.py --help

Usage

usage: main.py [-h] [--data_name DATA_NAME] [--epoch EPOCH] [--tot_trial TOT_TRIAL] [--alpha ALPHA] [--train_size TRAIN_SIZE]
               [--hidden_width HIDDEN_WIDTH] [--lam LAM] [--iseed ISEED] [--psim PSIM]

options:
  -h, --help            show this help message and exit
  --data_name DATA_NAME, -dn DATA_NAME
  --epoch EPOCH, -e EPOCH
                        number of epochs when training the neural networks
  --tot_trial TOT_TRIAL, -t TOT_TRIAL
                        total number of trials
  --alpha ALPHA, -a ALPHA
                        level of significance
  --train_size TRAIN_SIZE, -n TRAIN_SIZE
                        training size
  --hidden_width HIDDEN_WIDTH, -w HIDDEN_WIDTH
  --lam LAM, -l LAM     ridge penalty parameter 
  --iseed ISEED, -s ISEED
                        data generating random seed
  --psim PSIM, -p PSIM  simulation p
                        dimension of data features in the simulation

Example

python3 main.py -e 20 -n 100 -p 16 -dn sim

or

module load python/python3.9.9 #if python3 is not available
python main.py -e 20 -n 100 -p 16 -dn sim

License

The code is released under the MIT License.

dp_lazy_pi's People

Stargazers

Jeff Carpenter avatar  avatar

Watchers

 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.