I think the below would suffice to interpolate precision (if I've
understood correctly). I'm not sure if there's a vectorised way to do it
given the existing implementation.
if interpolate:
for i in range(1, len(precision)):
precision[i] = precision[i-1:i+1].max()
Equivalently:
if interpolate:
best = precision[0]
for i in range(1, len(precision)):
best = precision[i] = max(best, precision[i])
- Joel
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general