Skip to content

ndiamant/spice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Package for Spline Prediction Intervals via Conformal Estimation (SPICE)

Pre-print link.

Installation

Installation uses mamba and was tested with CUDA Version: 12.1 and python 3.10.6.

Mamba install

wget https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh
./Miniforge3-Linux-x86_64.sh

SPICE package install

mamba env create -f environment.yml
python -m pip install -e .
wandb login

Before running

First edit USERNAME in spice/utils.py to be your username. Some other hardcoded paths might have to be edited in build_python_cmd. You can edit build_scheduler_cmd to build commands that work with your job scheduler.

Workflow

To reproduce the whole paper, the procedure is as follows:

  1. Run all the hyperoptimize scripts in the experiments directory. This runs the hyperparameter grids for all models.
  2. Run experiments/collect_hyperparameters.py. This collects the results from the hyperameter search.
  3. Run experiments/run_from_hyperparams.py. This runs 20 replicates of each model's best hyperparameters.
  4. Run experiments/get_test_results.py. This builds latex tables from all the test set model runs.

You can also just run steps 3. and 4. using the saved hyperparameters in experiments/hyperparameters.zip.

About

Official repo for Conformalized Deep Splines for Optimal and Efficient Prediction Sets

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages