Skip to content
forked from ptocca/VennABERS

Fast implementation of Venn-ABERS probabilistic predictors

Notifications You must be signed in to change notification settings

valeman/VennABERS

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Venn-ABERS Predictor

(Preliminary documentation)

The VennABERS.py file is a pure Python implementation of the fast Venn-ABERS Predictor described in Vovk.

A Venn-ABERS predictor outputs two probability predictions for every test object. In particular, the Venn-ABERS predictor implemented here is the inductive form of probability predictor, which relies on a calibration set. In a nutshell, the Venn-ABERS predictor can be viewed as a distribution-free calibration function that maps scores output by a scoring classifier to well-calibrated probabilities. A gentle introduction can be found in the tutorial Toccaceli2017. It is

The function that implements the Venn-ABERS Predictor is ScoresToMultiProbs().

p0,p1 = ScoresToMultiProbs(calibrPts,testScores)

calibrPts: a list of pairs (score,label) corresponding to the scores and labels of the calibration examples. The score is a float and the label is an integer meant to take values 0 or 1.

testScores: a list of floats corresponding to the scores for the test objects.

The function returns a pair of Numpy arrays with the probabilistic predictions.

Acknowlegdements

  • Work done with funding from the European Union`s Horizon 2020 Research and Innovation programme under Grant Agreement no. 671555 (ExCAPE).
  • We are grateful for the help in conducting experiments to the Ministry of Education, Youth and Sports (Czech Republic) that supports the Large Infrastructures for Research, Experimental Development and Innovations project "IT4Innovations National Supercomputing Center - LM2015070".

About

Fast implementation of Venn-ABERS probabilistic predictors

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%