Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

sklearn-pmml-model.svm

This package contains the PMMLLinearSVC, PMMLNuSVC and PMMLSVC classifier models, as well as the PMMLLinearSVR, PMMLNuSVR and PMMLSVR regression models.

Example

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)