confidence_99

imagepypelines.confidence_99(data)[source]
returns the 99% confidence mean and deviation for the given
distribution
Parameters:data (array-like) – data to find the confidence interval for, in machine learning applications, this is usually accuracy for K-fold cross validation
Returns:the mean for this distributions float: +/- deviation for this confidence interval
Return type:float

Example

>>> import numpy as np
>>> import imagepypelines as ip
>>> # create sample test 'accuracies' from a normal distribution
>>> # mean accuracy is 75%, std is 10% for this example
>>> accuracies = np.random.normal(.75, .1, 1000)
>>> # get 99% confidence interval
>>> mean, error = ip.confidence_99(accuracies)