MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / _rbf

Method _rbf

machine_learning/sequential_minimum_optimization.py:419–420  ·  view source on GitHub ↗
(self, v1, v2)

Source from the content-addressed store, hash-verified

417 return np.inner(v1, v2) + self.coef0
418
419 def _rbf(self, v1, v2):
420 return np.exp(-1 * (self.gamma * np.linalg.norm(v1 - v2) ** 2))
421
422 def _check(self):
423 if self._kernel == self._rbf and self.gamma < 0:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected