Conformal prediction is a framework for providing accuracy guarantees on the predictions of a base predictor.
[Status: No Longer Maintained | Code provided as it is]
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:
python setup.py install
cf = 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)
Please refer here for more usage details.
- 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