Skip to content

Commit fdc7584

Browse files
committed
Avoid overflow errors
1 parent b06aa84 commit fdc7584

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

notebooks_jason/max_of_K_all_models.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3659,7 +3659,10 @@ def do_linear_regression(X, Y):
36593659
)
36603660
if include_baseline:
36613661
x_vals = np.logspace(
3662-
np.log2(min_flop), np.log2(max_flop), 100, base=2
3662+
np.log2(float(min_flop)),
3663+
np.log2(float(max_flop)),
3664+
100,
3665+
base=2,
36633666
)
36643667
y_vals = brute_force_slope * x_vals
36653668
match PLOT_WITH:

0 commit comments

Comments
 (0)