We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 160d6d7 commit cf38817Copy full SHA for cf38817
src/penn_chime/models.py
@@ -95,12 +95,13 @@ def __init__(self, p: Parameters):
95
)
96
97
# Make an initial coarse estimate
98
- dts = np.linspace(1, 15, 29)
+ dts = np.linspace(1, 15, 15)
99
min_loss = self.get_argmin_doubling_time(p, dts)
100
101
# Refine the coarse estimate
102
- dts = np.linspace(dts[min_loss-1], dts[min_loss+1], 29)
103
- min_loss = self.get_argmin_doubling_time(p, dts)
+ for iteration in range(4):
+ dts = np.linspace(dts[min_loss-1], dts[min_loss+1], 15)
104
+ min_loss = self.get_argmin_doubling_time(p, dts)
105
106
p.doubling_time = dts[min_loss]
107
0 commit comments