MCPcopy Create free account
hub / github.com/Jasonkks/PTTR / addData

Method addData

searchspace.py:71–74  ·  view source on GitHub ↗
(self, data, score)

Source from the content-addressed store, hash-verified

69 return np.array(samples)
70
71 def addData(self, data, score):
72 score = score.clip(min=1e-5) # prevent sum=0 in case of bad scores
73 self.data = data
74 self.score = score
75
76 def reset(self):
77 if len(self.bnd) == 2:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected