Closed xnuohz closed 3 years ago
You can fix the issue by replacing
gs = [smiles_to_bigraph(smiles,
node_featurizer=config['node_feat'],
edge_featurizer=config['edge_feat']) for smiles in smiles_lst]
with
gs = [smiles_to_bigraph(smiles,
add_self_loop=True,
node_featurizer=config['node_feat'],
edge_featurizer=config['edge_feat']) for smiles in smiles_lst]
Thanks:)
When
self_loop
in AttentiveFPBondFeaturizer isTrue
, I gotdgl._ffi.base.DGLError: Expect number of features to match number of edges. Got 87 and 60 instead.
Code: