JuliaStats / MLBase.jl

A set of functions to support the development of machine learning algorithms
MIT License
185 stars 63 forks source link

Example for cross_validate fails #12

Closed joehuchette closed 9 years ago

joehuchette commented 9 years ago
julia> (c, v, inds) = cross_validate(
        inds -> compute_center(data[:, inds]),          # training function
        (c, inds) -> compute_rmse(c, data[:, inds]),    # evaluation function
        n,              # total number of samples
        Kfold(n, 5),    # cross validation plan: 5-fold
        Reverse)        # smaller score indicates better model
ERROR: `cross_validate` has no method matching cross_validate(::Function, ::Function, ::Int64, ::Kfold, ::ReverseOrdering{ForwardOrdering})

Looks like the 5 argument version was removed at some point.

srenatus commented 9 years ago

Fixed by https://github.com/JuliaStats/MLBase.jl/commit/e433d2367e1e4b6a3d0dd52804d784e5c971ba93, I suppose