Code Monkey home page Code Monkey logo

conformal's Introduction

Conformal Inference R Project

Maintained by Ryan Tibshirani

Based on work by Rina Barber, Emmanuel Candes, Max G'Sell, Jing Lei, Aaditya Ramdas, Alessandro Rinaldo, Ryan Tibshirani, Larry Wasserman

This repository contains R software tools for conformal inference. The current emphasis is on conformal prediction in regression. We may eventually add tools for density estimation and classification.

The folder "conformalInference" can be installed as an R package, providing access to the software tools, and the file "conformalInference.pdf" contains documentation.

The folder "lei2018" contains R code to reproduce all examples in the paper Distribution-Free Predictive Inference for Regression by Lei, G'Sell, Rinaldo, Tibshirani, Wasserman (2018). The folder "tibshirani2019" contains R code to reproduce all examples in the paper Conformal Prediction Under Covariate Shift by Tibshirani, Barber, Candes, Ramdas (2019). This code all relies on the "conformalInference" R package.

Relevant work (in reverse chronological order):

Install the R package

To install the conformalInference R package directly from github, run the following in R:

library(devtools)
install_github(repo="ryantibs/conformal", subdir="conformalInference")

conformal's People

Contributors

ledell avatar paolo-vergo avatar ryantibs avatar szcf-weiya avatar vedina avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

conformal's Issues

Implement unit testing

Now that we have some collaborative software development happening thanks to @matteo-fontana @paolo-vergo and team, we should really implement unit tests in this package. We can use the testthat package, for example.

Paolo and team, can you guys start doing this at least for the new stuff you're adding? (Ideally we'd write tests to cover everything that's there as well---if you wanted to do that, then this would be excellent.)

Using model on different data.

Hi @ryantibs
I'm trying to use the model on a different data set.
It's multivariate regression problem.
A matrix X to predict a y value.
A highly nonlinear function.
What would be the best strategy using the package?

Many thanks in advance for your assistance.
Best,
Andrew

Upload ConformalInference on CRAN

The package in its current form is not uploaded on CRAN. It would be useful to have it there, so to increase the visibility of the package

Documentation update

Now that @matteo-fontana @paolo-vergo and team are planning to add a bunch of new functionality, we should:

  • update the authors in the DESCRIPTION to include the new folks who contribute code
  • update the README to include the new folks as well, as well as the new papers whose methods are reflected in the code
  • move all the documentation over to pkgdown/github docs. This (in my opinion) is way more readable and nice than the "old style" pdf documentation file.
  • assuming we do the last one, we should also move all the examples over to vignettes in the pkgdown site. Again, this (in my opinion) is a way nicer way to see examples of how to use the package.

Implementation for classification

Hi,
since conformal prediction also works for classification, do you plan to implement it for classification here in the near future?

Best regards,

Robin

Lasso Funs and other examples

When running examples from the r code folder, examples such as lasso.funs and elastics.funs, I keep getting an error when running it.

funs = lasso.funs(lambda = lambda)
Error in !is.numeric(lambda) || min(lambda) <= 0 || (order(lambda) != :
'length = 96' in coercion to 'logical(1)'

This is the error I am getting when running these functions. Please help out if possible.

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.