Class LinearSvc
java.lang.Object
ai.beestream.jitnn.ml.LinearSvc
Linear support vector classification with the squared hinge loss, one-vs-rest, after
scikit-learn's LinearSVC (liblinear, intercept_scaling 1): for each class it minimises
||[w, b]||^2 / 2 + C sum_i max(0, 1 - y_i (w . x_i + b))^2, the intercept penalised like a
weight, with L-BFGS (the objective is smooth).
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
LinearSvc
public LinearSvc(float c, int maxIter) A classifier with penaltycand at mostmaxIteriterations. -
LinearSvc
public LinearSvc()A classifier with scikit-learn's defaults: C 1, 1000 iterations.
-
-
Method Details
-
fit
-
coef
The weights: [1, features] for two classes, else [classes, features]. -
intercept
-
decisionFunction
-
predict
The predicted label of each sample.
-