MCPcopy Create free account
hub / github.com/AssemblyAI-Community/Machine-Learning-From-Scratch / __init__

Method __init__

09 SVM/svm.py:5–10  ·  view source on GitHub ↗
(self, learning_rate=0.001, lambda_param=0.01, n_iters=1000)

Source from the content-addressed store, hash-verified

3class SVM:
4
5 def __init__(self, learning_rate=0.001, lambda_param=0.01, n_iters=1000):
6 self.lr = learning_rate
7 self.lambda_param = lambda_param
8 self.n_iters = n_iters
9 self.w = None
10 self.b = None
11
12 def fit(self, X, y):
13 n_samples, n_features = X.shape

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected