99f1fe50a8f08740243f23a73b7af65e196ab3ac,hyperspy/misc/lowess_smooth.py,,lowess,#,23
Before Change
n = len(x)
r = int(np.ceil(f * n))
h = [np.sort(np.abs(x - x[i]))[r] for i in range(n)]
w = np.clip(np.abs((x[:, None ] - x[None, :]) / h), 0.0, 1.0)
w = (1 - w ** 3) ** 3
yest = np.zeros(n)
delta = np.ones(n)
After Change
residuals = y - yest
s = np.median(np.abs(residuals))
//delta = np.clip(residuals / (6.0 * s), -1.0, 1.0)
delta = np.minimum(1.0, np.maximum(residuals / (6.0 * s), -1.0))
delta = (1 - delta ** 2) ** 2
return yest
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 2
Instances Project Name: hyperspy/hyperspy
Commit Name: 99f1fe50a8f08740243f23a73b7af65e196ab3ac
Time: 2020-08-31
Author: eric.prestat@gmail.com
File Name: hyperspy/misc/lowess_smooth.py
Class Name:
Method Name: lowess
Project Name: adalca/neuron
Commit Name: 6777017412dd6b572cc385958b605f07cf398601
Time: 2020-09-11
Author: 46202852+neel-dey@users.noreply.github.com
File Name: neurite/tf/layers.py
Class Name: MeanStream
Method Name: call
Project Name: adalca/neuron
Commit Name: 6777017412dd6b572cc385958b605f07cf398601
Time: 2020-09-11
Author: 46202852+neel-dey@users.noreply.github.com
File Name: neurite/tf/layers.py
Class Name: CovStream
Method Name: call