Package io.trino.plugin.ml
Class AbstractSvmModel
java.lang.Object
io.trino.plugin.ml.AbstractSvmModel
- All Implemented Interfaces:
Model
- Direct Known Subclasses:
SvmClassifier,SvmRegressor
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractSvmModel(libsvm.svm_model model) protectedAbstractSvmModel(libsvm.svm_parameter params) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract intbyte[]protected static libsvm.svm_node[]toSvmNodes(FeatureVector features) void
-
Field Details
-
model
protected libsvm.svm_model model -
params
protected libsvm.svm_parameter params
-
-
Constructor Details
-
AbstractSvmModel
protected AbstractSvmModel(libsvm.svm_parameter params) -
AbstractSvmModel
protected AbstractSvmModel(libsvm.svm_model model)
-
-
Method Details
-
getSerializedData
public byte[] getSerializedData()- Specified by:
getSerializedDatain interfaceModel
-
train
-
getLibsvmType
protected abstract int getLibsvmType() -
toSvmNodes
-