Yes, there is. And I've been campaigning to refactor `cross_val_score` and
`grid_search` for some time, but PRs that involve this change, such as
#2079 haven't received much attention, or are subject to controversial API
changes. So perhaps you could include that refactoring here, but maybe it
belongs in a separate PR.


On Thu, Jan 2, 2014 at 9:55 AM, Alexander Fabisch
<notifications@github.com>wrote:

>  In sklearn/learning_curve.py:
>
> > +
> > +    Returns
> > +    -------
> > +    n_samples_range : array, shape = [n_ticks,], dtype int
> > +        Numbers of training examples that has been used to generate the
> > +        learning curve.
> > +
> > +    train_scores : array, shape = [n_ticks,]
> > +        Scores on training sets.
> > +
> > +    test_scores : array, shape = [n_ticks,]
> > +        Scores on test set.
> > +    """
> > +    # TODO tests, doc
> > +    # TODO allow y to be None for unsupervised learning
> > +    # TODO there is an overlap with grid search -> refactoring
>
> There is a lot of duplicate code...
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/scikit-learn/scikit-learn/pull/2701/files#r8607255>
> .
>