7391aec984c1e9e0899d51e6b0538483c37ec8fb,torchdiffeq/_impl/tsit5.py,Tsit5Solver,_adaptive_tsit5_step,#Tsit5Solver#,114
Before Change
if on_grid and accept_step:
// We"ve just passed a grid point, which is typically used to indicate a discontinuity in f; we should
// update f to match the side of the discontinuity we"re now on.
f1 = self.func(t_next, y_next)
if self.next_grid_index != len(self.grid_points) - 1:
self.next_grid_index += 1
f_next = f1 if accept_step else f0
dt_next = _optimal_step_size(dt, mean_error_ratio, self.safety, self.ifactor, self.dfactor, order=5)
After Change
t_next = t0 + dt + 2 * eps if accept_step else t0
y_next = y1 if accept_step else y0
if on_grid and accept_step:
if eps != 0:
// We"ve just passed a discontinuity in f; we should update f1 to match the side of the discontinuity
// we"re now on.
f1 = self.func(t_next.type_as(y_next[0]), y_next)
if self.next_grid_index != len(self.grid_points) - 1:
self.next_grid_index += 1
f_next = f1 if accept_step else f0
dt_next = _optimal_step_size(dt, mean_error_ratio, self.safety, self.ifactor, self.dfactor)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances Project Name: rtqichen/torchdiffeq
Commit Name: 7391aec984c1e9e0899d51e6b0538483c37ec8fb
Time: 2020-07-27
Author: 33688385+patrick-kidger@users.noreply.github.com
File Name: torchdiffeq/_impl/tsit5.py
Class Name: Tsit5Solver
Method Name: _adaptive_tsit5_step
Project Name: scikit-optimize/scikit-optimize
Commit Name: 98c3d1f65f075ff960b219afe017cd4cf55bfba7
Time: 2016-04-19
Author: betatim@gmail.com
File Name: skopt/gbrt_opt.py
Class Name:
Method Name: gbrt_minimize
Project Name: scikit-optimize/scikit-optimize
Commit Name: 544875dd8a7fea49a86e5623d37274159b4ba7b5
Time: 2017-01-10
Author: betatim@gmail.com
File Name: skopt/optimizer/base.py
Class Name:
Method Name: base_minimize
Project Name: sympy/sympy
Commit Name: ef99c69f2edf35c7846f9d0c81ddfe0a126d73fe
Time: 2020-12-16
Author: sylee957@gmail.com
File Name: sympy/functions/elementary/exponential.py
Class Name: exp
Method Name: _eval_is_algebraic