From 322bd60988739645bb1b949ebeafcab4438db76a Mon Sep 17 00:00:00 2001 From: Tim Gates Date: Thu, 24 Dec 2020 17:51:23 +1100 Subject: [PATCH] docs: fix simple typo, distrbution -> distribution There is a small typo in svm_class/svm_gradient.py. Should read `distribution` rather than `distrbution`. --- svm_class/svm_gradient.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svm_class/svm_gradient.py b/svm_class/svm_gradient.py index 1a978363..d4ddf6dc 100644 --- a/svm_class/svm_gradient.py +++ b/svm_class/svm_gradient.py @@ -70,7 +70,7 @@ def fit(self, X, Y, lr=1e-5, n_iters=400): self.alphas[self.alphas < 0] = 0 self.alphas[self.alphas > self.C] = self.C - # distrbution of bs + # distribution of bs idx = np.where((self.alphas) > 0 & (self.alphas < self.C))[0] bs = Y[idx] - (self.alphas * Y).dot(self.kernel(X, X[idx])) self.b = np.mean(bs) pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy