You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"""A 1D optimisation function, assuming the loss function in question is convex, It first checks to see the bounds are correct, then refines them by fitting quadratic polynomials"""
44
+
"""
45
+
Gradient-less line search of the minimum of `get_err`, supposedly between `x_left` and `x_right`.
46
+
Fits quadratic polynomials to perform this search, meaning `get_err` is assumed to be convex.
47
+
48
+
Args:
49
+
x_left (float): supposed left bound of the minimum of `get_err`
50
+
x_right (float): supposed right bound of the minimum of `get_err`
51
+
get_err (callable float->float): the function to minimise.
52
+
n_iter (int): the number of function calls allowed
53
+
x_thres (float): the acceptable error threshold for the the argmin to find
54
+
y_thres (float): the acceptable error threshold for the min to find
55
+
56
+
Returns:
57
+
the (argmin, min) tuple characterising the minimum of the function (2x float)
0 commit comments