Liking cljdoc? Tell your friends :D

org.apache.clojure-mxnet.eval-metric


accuracyclj

(accuracy)

Basic Accuracy Metric

Basic Accuracy Metric
raw docstring

custom-metricclj/smacro

(custom-metric f-eval mname)

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
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
raw docstring

f1clj

(f1)

Calculate the F1 score of a binary classification problem.

Calculate the F1 score of a binary classification problem.
raw docstring

getclj

(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)
raw docstring

get-and-resetclj

(get-and-reset metric)

Get the values and then reset the metric

Get the values and then reset the metric
raw docstring

maeclj

(mae)

Calculate Mean Absolute Error loss

Calculate Mean Absolute Error loss
raw docstring

mseclj

(mse)

Calculate Mean Squared Error loss

Calculate Mean Squared Error loss
raw docstring

perplexityclj

(perplexity)
(perplexity {:keys [ignore-label axis] :as opts :or {axis -1}})

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.
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.
raw docstring

resetclj

(reset metric)

clear the internal statistics to an initial state

clear the internal statistics to an initial state
raw docstring

rmseclj

(rmse)

Calculate Root Mean Squred Error loss

Calculate Root Mean Squred Error loss
raw docstring

top-k-accuracyclj

(top-k-accuracy top-k)

Calculate to k predications accuracy

  • top-k number of predicts (int)
Calculate to k predications accuracy
- top-k number of predicts (int)
raw docstring

updateclj

(update metric labels preds)

Update the internal evaluation

Update the internal evaluation
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close