scicloj.metamorph.ml.viz
deprecated in 1.7.0
confusion-matrix
deprecated in 1.7.0
(confusion-matrix predicted-labels labels opts hanami-opts)(confusion-matrix predicted-labels labels)Generates a confusin matrix plot out of predicted-labels and labels
-
optsnormalize: Can be :none (default) or :all and decides if the values in the matrix are counts or percentages.
-
hanami-optsOptions passed to hanami to control the plot. Can be any of the default hanami substituions keys.
learning-curve
deprecated in 1.7.0
(learning-curve dataset pipe-fn train-sizes lc-opts hanami-opts)(learning-curve dataset pipe-fn lc-opts)(learning-curve dataset pipe-fn lc-opts hanami-opts)Generates a learning 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 a vega lite spec of the learninig curve plot.
datasetthe TMD dataset to usetrain-sizesvector of double from 0 to 1, controlling the sizes of the training data.lc-optskAt 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
hanami-optsOptions passed to hanami to control the plot. Can be the default hanami substituions keys or:TRAIN-COLOR:Color used for the train curve (default: blue)TEST-COLOR:Color used for the test curve (default: orange)