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

Method aggregate

mla/knn.py:71–74  ·  view source on GitHub ↗

Return the mean of all targets.

(self, neighbors_targets)

Source from the content-addressed store, hash-verified

69 """Nearest neighbors regressor."""
70
71 def aggregate(self, neighbors_targets):
72 """Return the mean of all targets."""
73
74 return np.mean(neighbors_targets)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected