LasseRegin / SVM-w-SMO

Simple implementation of a Support Vector Machine using the Sequential Minimal Optimization (SMO) algorithm for training.
MIT License
118 stars 55 forks source link

SVM

Simple implementation of a Support Vector Machine using the Sequential Minimal Optimization (SMO) algorithm for training.

Supported python versions:

Python package dependencies

Documentation

Setup model (following parameters are default)


from SVM import SVM
model = SVM(max_iter=10000, kernel_type='linear', C=1.0, epsilon=0.001)

Train model

model.fit(X, y)

Predict new observations

y_hat = model.predict(X_test)