(self, x, L=100, x0=50, k=.1)
| 112 | return random.randint(lower_bound, upper_bound) |
| 113 | |
| 114 | def logistic(self, x, L=100, x0=50, k=.1): |
| 115 | if x == 0: |
| 116 | return 0 |
| 117 | if x == 100: |
| 118 | return 100 |
| 119 | return np.round(L / (1 + np.exp(-k * (x - x0))), 3) |
| 120 | |
| 121 | def read_context_files(self, n): |
| 122 | max_context_length = max(self.context_lengths) |