scicloj.metamorph.ml.learning-curve
learning-curve
(learning-curve ds pipe-fn train-sizes {:keys [k metric-fn loss-or-accuracy]})Generates a learnining curve.
The functions splits the dataset in a fixed size test set and increasingly larger training sets. A model is trained at each step and evaluated.
Returns dataset with the learninig curve data.
datasetthe TMD dataset to usetrain-sizesvector of double from 0 to 1, controlling the sizes of the training data.optionskAt each step a k cross-validation is donemetric-fnthe metric to use for evaluation the modelloss-or-accuracyIf the metric-fn calculates :loss or :accuracy