Closed ir5 closed 5 years ago
Could you fix tests?
AttributeError: module 'chainer.utils' has no attribute 'CooMatrix'
df = np.diff(sorted_pos, prepend=sorted_pos[0]) != 0
E TypeError: diff() got an unexpected keyword argument 'prepend'
I would like to merge it after test is fixed. After merged, I would like to further refactor sparse model support as follows if possible:
CooMatrix
CooMatrix
CooMatrix
, instead of separated data
, row
, col
.I modified the code to skip tests of sparse models when required modules are not available.
It seems that CI build have failed because of test_standard_scaler.py
. Why? StandardScaler
must be irrelevant with this PR.
I understood, some behavior has been changed since numpy==1.16.3 and thus serializers.load_npz
is not working properly. https://github.com/pfnet-research/chainer-chemistry/pull/349#issuecomment-487424549
I think numpy behavior has changed since 1.16.3, and chainer serializer is not working well now.
Merging #342 into master will increase coverage by
1.01%
. The diff coverage is91.39%
.
@@ Coverage Diff @@
## master #342 +/- ##
=========================================
+ Coverage 80.88% 81.9% +1.01%
=========================================
Files 207 212 +5
Lines 9496 9868 +372
=========================================
+ Hits 7681 8082 +401
+ Misses 1815 1786 -29
This PR adds new implementation: GGNN for sparse matrix inputs.
GGNNUpdater
. Now the updater can acceptCooMatrix
as well as densendarray
.GGNN
is unchanged.SparseGGNN
is newly introduced.