MCPcopy Create free account
hub / github.com/LargeWorldModel/LWM / logistic

Method logistic

scripts/eval_needle_multi.py:119–124  ·  view source on GitHub ↗
(self, x, L=100, x0=50, k=.1)

Source from the content-addressed store, hash-verified

117 return random.randint(lower_bound, upper_bound)
118
119 def logistic(self, x, L=100, x0=50, k=.1):
120 if x == 0:
121 return 0
122 if x == 100:
123 return 100
124 return np.round(L / (1 + np.exp(-k * (x - x0))), 3)
125
126 def read_context_files(self, n):
127 max_context_length = max(self.context_lengths)

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected