basic svm

This commit is contained in:
Tibe Habils
2023-05-01 18:06:52 +02:00
parent 672f86c317
commit d9c24df5f4
3 changed files with 54 additions and 4 deletions

View File

@@ -1,6 +1,9 @@
import numpy as np
from collections import Counter
# TODO scaling van distance tov intra distances?
# TODO efficientere manier om k=1 te doen
def minkowski_distance_p(x, y, p=2):
x = np.asarray(x)