You can search for identifiers within the package.
in-package search v0.2.0
libsvm
Svm.Model
type t
Type of a SVM model.
val get_svm_type : t -> [ `C_SVC | `NU_SVC | `ONE_CLASS | `EPSILON_SVR | `NU_SVR ]
get_svm_type model
the svm type that was used to train the given model.
model
val get_n_classes : t -> int
get_n_classes model
the number of classes for a classification model or 2 for a regression or an one-class model.
val get_labels : t -> int list
get_labels model
the labels of a two or multi-class classification problem in a list.
Invalid_argument
in the case of a regression or one-class model.
val get_n_sv : t -> int
get_n_sv model
the total number of support vectors.
val get_svr_probability : t -> float
get_svr_probability model
a positive value for a regression model with probability information. In the case of no probability information, 0 is returned.
for non-regression models.
val save : t -> string -> unit
save model filename saves a model to the file filename.
save model filename
filename
val load : string -> t
load filename loads a model from the file filename.
load filename
Failure
if model could not be loaded.