MCPcopy Create free account
hub / github.com/rushter/MLAlgorithms / aggregate

Method aggregate

mla/knn.py:28–29  ·  view source on GitHub ↗
(self, neighbors_targets)

Source from the content-addressed store, hash-verified

26 self.distance_func = distance_func
27
28 def aggregate(self, neighbors_targets):
29 raise NotImplementedError()
30
31 def _predict(self, X=None):
32 predictions = [self._predict_x(x) for x in X]

Callers 1

_predict_xMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected