Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
done : bool
Returns whether the `tol` has been reached.
plot : hv.Scatter
Plots all the points that are evaluated.
"""
self.function = function
self.bounds = bounds
self.tol = tol
self.max_ivals = 1000
self.priority_split = []
self.done_points = {}
self.pending_points = set()
self._stack = []
self.x_mapping = defaultdict(lambda: SortedSet([], key=attrgetter('rdepth')))
self.ivals = set()
ival = _Interval.make_first(*self.bounds)
self.add_ival(ival)
self.first_ival = ival
done : bool
Returns whether the `tol` has been reached.
plot : hv.Scatter
Plots all the points that are evaluated.
"""
self.function = function
self.bounds = bounds
self.tol = tol
self.max_ivals = 1000
self.priority_split = []
self.data = {}
self.pending_points = set()
self._stack = []
self.x_mapping = defaultdict(lambda: SortedSet([], key=attrgetter("rdepth")))
self.ivals = set()
ival = _Interval.make_first(*self.bounds)
self.add_ival(ival)
self.first_ival = ival