f47485cc4a21fb18564ede7ab0cc9001dbd0f1d9,chaospy/descriptives/sensitivity/main.py,,Sens_m,#,9
Before Change
zero = [0]*dim
out = numpy.zeros((dim,) + poly.shape)
V = Var(poly, dist, **kws)
for i in range(dim):
zero[i] = 1
out[i] = Var(E_cond(poly, zero, dist, **kws),
dist, **kws)/(V+(V == 0))*(V != 0)
zero[i] = 0
return out
After Change
out = numpy.zeros((dim,) + poly.shape)
variance = Var(poly, dist, **kws)
valids = variance != 0
for idx, unit_vec in enumerate(numpy.eye(dim, dtype=int)):
conditional = E_cond(poly[valids], unit_vec, dist, **kws)
out[idx, valids] = Var(conditional, dist, **kws)
out[idx, valids] /= variance[valids]
return out
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 9
Instances
Project Name: jonathf/chaospy
Commit Name: f47485cc4a21fb18564ede7ab0cc9001dbd0f1d9
Time: 2020-06-10
Author: jonathf@gmail.com
File Name: chaospy/descriptives/sensitivity/main.py
Class Name:
Method Name: Sens_m
Project Name: jonathf/chaospy
Commit Name: f47485cc4a21fb18564ede7ab0cc9001dbd0f1d9
Time: 2020-06-10
Author: jonathf@gmail.com
File Name: chaospy/descriptives/sensitivity/total.py
Class Name:
Method Name: Sens_t
Project Name: osmr/imgclsmob
Commit Name: 6acabb62c34a28ff33f635763bae5c7a70aa8fb5
Time: 2021-02-10
Author: osemery@gmail.com
File Name: pytorch/pytorchcv/models/others/_enet.py
Class Name: ENetStage
Method Name: __init__