On Wed, Oct 24, 2012 at 9:18 PM, Andreas Mueller
<[email protected]>wrote:
>
> Can any one explain to me again the use-case we are talking about?
> What do we want to find out using isinstance or duck-typing?
>
For example, Olivier gave this example:
class ROCAreaUnderCurveScore(object):
[...]
def from_decision_thresholds(self, expected, predicted_thresholds):
return auc_score(expected, predicted_thresholds)
By checking hasattr(metric, "from_decision_thresholds"), you would know
that this metric supports computing a score from decision thresholds.
Personally, I would rather not have three different ways to call the same
metric so I would prefer the solution based on tags or based on isinstance.
Mathieu
------------------------------------------------------------------------------
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_sfd2d_oct
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general