MCPcopy Create free account
hub / github.com/MotrixLab/ViMoGen / closet_smaller_bucket

Function closet_smaller_bucket

datasets/bucket.py:146–150  ·  view source on GitHub ↗
(value, bucket)

Source from the content-addressed store, hash-verified

144
145
146def closet_smaller_bucket(value, bucket):
147 for i in range(1, len(bucket)):
148 if value < bucket[i]:
149 return bucket[i - 1]
150 return bucket[-1]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected