Conformal prediction is a framework for providing accuracy guarantees on the predictions of a base predictor.
Conformal uses the following dependencies:
- numpy,
- pyyaml
- HDF5 and h5py (optional, required if you use model saving/loading functions)
To install Conformal, cd to the conformal folder and run the install command:
sudo python setup.py installYou can also install Conformal from PyPI:
sudo pip install conformalcf = ConformalPrediction(model_prediction, Y_test, 5, measure=SoftMax(), threshold_mode=0)
cf_prediction = cf.predict(model_prediction)
cf_accuracy = cf.evaluate(cf_prediction, Y_test)- Fork it!
- Create your feature branch:
git checkout -b my-new-feature - Commit your changes:
git commit -am 'Add some feature' - Push to the branch:
git push origin my-new-feature - Submit a pull request :D