(custom-metric f-eval mname)
Custom evaluation metric that takes a NDArray function.
Custom evaluation metric that takes a NDArray function. - f-eval Customized evaluation function that takes two ndarrays and returns a number function must be in the form of (fn [] ) clojure style - mname The name of the metric
(f1)
Calculate the F1 score of a binary classification problem.
Calculate the F1 score of a binary classification problem.
(get metric)
Get the values of the metric in a vector form (name and value)
Get the values of the metric in a vector form (name and value)
(get-and-reset metric)
Get the values and then reset the metric
Get the values and then reset the metric
(perplexity)
(perplexity {:keys [ignore-label axis] :as opts :or {axis -1}})
Calculate perplexity
Calculate perplexity - opts :ignore-label Index of invalid label to ignore when counting. Usually should be -1. Include all entries if None. :axis The axis from prediction that was used to compute softmax. Default is -1 which means use the last axis.
(reset metric)
clear the internal statistics to an initial state
clear the internal statistics to an initial state
(rmse)
Calculate Root Mean Squred Error loss
Calculate Root Mean Squred Error loss
(top-k-accuracy top-k)
Calculate to k predications accuracy
Calculate to k predications accuracy - top-k number of predicts (int)
(update metric labels preds)
Update the internal evaluation
Update the internal evaluation
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close