MCPcopy Create free account
hub / github.com/Adam-Vandervorst/PyBHV / _discrete_sample

Method _discrete_sample

bhv/embedding.py:129–188  ·  view source on GitHub ↗

Samples data points from a list based on a center point and a kernel. Parameters: - data: List of data points to sample from. - point: Center point as a float between 0 and 1. - kernel: List of integers representing the multipliers for each data point around

(data: list[S], point: float, kernel: list[int], border: '"wrap" | "cut" | "bunch"')

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

forwardMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected