Model
NAME
Algorithm::LibSVM::Model - A Raku Algorithm::LibSVM::Model class
SYNOPSIS
use Algorithm::LibSVM::Model;
DESCRIPTION
Algorithm::LibSVM::Model is a Raku Algorithm::LibSVM::Model class
METHODS
save
Defined as:
method save(Str $filename)
Saves the model to the file $filename
.
svm-type
Defined as:
method svm-type(--> SVMType)
Returns the SVMType
object.
nr-class
Defined as:
method nr-class(--> Int:D)
Returns the number of the classes.
labels
Defined as:
method labels(--> List)
Returns the labels.
sv-indices
Defined as:
method sv-indices(--> List)
Returns the indices of the support vectors.
nr-sv
Defined as:
method nr-sv(--> Int:D)
Returns the number of the support vectors.
svr-probability
Defined as:
method svr-probability(--> Num:D)
Returns the probability predicted by support vector regression.
predict
Defined as:
method predict(:$features where { .all ~~ Pair }, Bool :$probability, Bool :$decision-values --> Hash)
Conducts the prediction and returns its results.
AUTHOR
titsuki <[email protected]>
COPYRIGHT AND LICENSE
Copyright 2016 titsuki
This library is free software; you can redistribute it and/or modify it under the terms of the MIT License.
libsvm ( https://github.com/cjlin1/libsvm ) by Chih-Chung Chang and Chih-Jen Lin is licensed under the BSD 3-Clause License.