On 02/03/2013 04:26 PM, Gael Varoquaux wrote:
>
> In sklearn/metrics/score_objects.py:
>
> > +
> > +# Standard Classification Scores
> > +accuracy_scorer = Scorer(accuracy_score)
> > +f1_scorer = Scorer(f1_score)
> > +
> > +# Score functions that need decision values
> > +auc_scorer = Scorer(auc_score, greater_is_better=True, needs_threshold=True)
> > +average_precision_scorer = Scorer(average_precision_score,
> > +                                  needs_threshold=True)
> > +precision_scorer = Scorer(precision_score)
> > +recall_scorer = Scorer(recall_score)
> > +
> > +# Clustering scores
> > +ari_scorer = Scorer(adjusted_rand_score)
> > +
> > +scorers = dict(r2=r2_scorer, mse=mse_scorer, accuracy=accuracy_scorer,
> the pairwise_distance_function dict in pairwise.py is also lower 
> case.... should it be renamed to upper case?
> I think so. I even think that the PEP8 specifies this way of naming 
> constants.
It does. I am not entirely sure what the definition of a "constant" is, 
though.