Skip to content

Instantly share code, notes, and snippets.

@Ghost---Shadow
Ghost---Shadow / FixedSVM.py
Last active February 22, 2020 07:27
Fixed a bug by rotating the decision boundary with smaller increments
import matplotlib.pyplot as plt
from matplotlib import style
import numpy as np
style.use('ggplot')
class Support_Vector_Machine:
def __init__(self, visualization=True):
self.visualization = visualization
self.colors = {1:'r',-1:'b'}
if self.visualization: