libsvm

LIBSVM bindings for OCaml
IN THIS PACKAGE
Module Libsvm . Stats
val calc_n_correct : Lacaml.D.vec -> Lacaml.D.vec -> int

calc_n_correct expected predicted

  • returns

    the number of correctly predicted labels.

  • raises Invalid_argument

    if the vector dimensions do not match.

val calc_accuracy : Lacaml.D.vec -> Lacaml.D.vec -> float

calc_accuracy expected predicted

  • returns

    the ratio (in percent) of correctly predicted labels to the number of all labels.

  • raises Invalid_argument

    if the vector dimensions do not match.

val calc_mse : Lacaml.D.vec -> Lacaml.D.vec -> float

calc_mse expected predicted

  • returns

    the mean sum of squared errors.

  • raises Invalid_argument

    if the vector dimensions do not match.

val calc_scc : Lacaml.D.vec -> Lacaml.D.vec -> float

calc_scc expected predicted

  • returns

    the squared correlation coefficient.

  • raises Invalid_argument

    if the vector dimensions do not match.