MLJBase.jl icon indicating copy to clipboard operation
MLJBase.jl copied to clipboard

Add `InSample` resampling strategy

Open ablaom opened this issue 1 year ago • 0 comments

When you want to train on all specified data and test on the same data.

So,

e = evaluate(model, X, y, resampling=InSample(), measure=l1)
e.measurement[1]

is equivalent to:

mach = machine(model, X, y) |> fit!
yhat = predict(mach, X)
l2(yhat, y)

Which is even more convenient when there is battery measures to be evaluated.

ablaom avatar Mar 25 '24 22:03 ablaom