1527c8c1e4b5cfa59703d7fd6c91d89310db9a15,kymatio/scattering2d/tests/test_scattering2d.py,,test_Scattering2D,#,37
Before Change
// (which is how it"s now computed)
o0, o1, o2 = reorder_coefficients_from_interleaved(J, L=8)
reorder = torch.from_numpy(np.concatenate((o0, o1, o2)))
S = S[..., reorder, :, :]
pre_pad = data["pre_pad"]
After Change
def test_Scattering2D():
test_data_dir = os.path.dirname(__file__)
with open(os.path.join(test_data_dir, "test_data_2d.npz"), "rb") as f:
buffer = io.BytesIO(f.read())
data = np.load(buffer)
x = torch.from_numpy(data["x"])
S = torch.from_numpy(data["Sx"])
J = data["J"]
pre_pad = data["pre_pad"]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: kymatio/kymatio
Commit Name: 1527c8c1e4b5cfa59703d7fd6c91d89310db9a15
Time: 2020-02-18
Author: edouard.oyallon@ens.fr
File Name: kymatio/scattering2d/tests/test_scattering2d.py
Class Name:
Method Name: test_Scattering2D
Project Name: kymatio/kymatio
Commit Name: 1527c8c1e4b5cfa59703d7fd6c91d89310db9a15
Time: 2020-02-18
Author: edouard.oyallon@ens.fr
File Name: kymatio/scattering2d/tests/test_torch_scattering2d.py
Class Name: TestScatteringTorch2D
Method Name: test_Scattering2D
Project Name: deepchem/deepchem
Commit Name: 303e3983b998ec2037a21f59aac932dddd834e75
Time: 2020-08-13
Author: bharath@Bharaths-MBP.zyxel.com
File Name: deepchem/data/tests/test_legacy.py
Class Name:
Method Name: test_reshard