This package contains the PMMLLinearSVC
, PMMLNuSVC
and PMMLSVC
classifier models, as well as the PMMLLinearSVR
, PMMLNuSVR
and PMMLSVR
regression models.
A minimal working example is shown below:
import pandas as pd
from sklearn_pmml_model.svm import PMMLSVC
# Prepare data
df = pd.read_csv('models/categorical-test.csv')
Xte = df.iloc[:, 1:]
clf = PMMLSVC(pmml="models/svc-cat-pima.pmml")
clf.predict(Xte)