8f8fbb9f6543a4ccaad53923d33647e7138d95ea,test/test.py,,test_assign,#,53
Before Change
E2 = encoding.aggregate()(A2, X, C)
print("E1", E1)
print("E2", E2)
def test_residual():
B,N,K,D = 2,3,4,5
After Change
A2 = F.softmax(encoding.functions.scaledL2(X,C,S))
E2 = encoding.functions.aggregate(A2, X, C)
print("Testing assign(): {}".format((E1-E2).norm(2).data[0] < EPS))
def test_residual():
B,N,K,D = 2,3,4,5
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: zhanghang1989/PyTorch-Encoding
Commit Name: 8f8fbb9f6543a4ccaad53923d33647e7138d95ea
Time: 2017-10-15
Author: zhang.hang@rutgers.edu
File Name: test/test.py
Class Name:
Method Name: test_assign
Project Name: deepchem/deepchem
Commit Name: 4270c3dae0b80b384c4a0026e2043345904b4fe5
Time: 2016-08-31
Author: bharath.ramsundar@gmail.com
File Name: deepchem/featurizers/tests/test_atomic_coordinates.py
Class Name: TestAtomicCoordinates
Method Name: test_neighbor_list_shape
Project Name: scikit-multiflow/scikit-multiflow
Commit Name: 469a2a2f2fafa0ded8984f21587021cd044b7200
Time: 2017-08-02
Author: guilhermekmatsumoto@gmail.com
File Name: skmultiflow/classification/lazy/neighbours/distances.py
Class Name:
Method Name: