geifmany / selective_deep_learning Goto Github PK
View Code? Open in Web Editor NEWCode for the paper "Selective Classification for Deep Neural Networks"
Code for the paper "Selective Classification for Deep Neural Networks"
Hi Yonatan,
We spoke briefly during NIPS at your poster. I've been trying to incorporate your code into an evaluation scheme, but noticed that the function would sometimes not converge to a bound. I think I've narrowed it down to the following lines, where sometimes erm=1.0, and the function keeps evaluating the funcval at b=1.
Can we fix this with a simple check as follows?
while abs(funcval) > precision:
if a == 1.0 and c == 1.0:
b = 1.0
break
elif funcval > 0:
...
def calculate_bound(delta, m, erm):
# This function is a solver for the inverse of binomial CDF based on binary search.
precision = 1e-7
def func(b):
return (-1 * delta) + scipy.stats.binom.cdf(int(m * erm), m, b)
a = erm # start binary search from the empirical risk
c = 1 # the upper bound is 1
b = (a + c) / 2 # mid point
funcval = func(b)
while abs(funcval) > precision:
if funcval > 0:
a = b
else:
c = b
b = (a + c) / 2
funcval = func(b)
return b
My email is [email protected]. Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.