Skip to content

Commit

Permalink
Change
Browse files Browse the repository at this point in the history
  • Loading branch information
Bharath Ramsundar authored and Bharath Ramsundar committed Jul 11, 2020
1 parent b66503d commit e8d4765
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
7 changes: 4 additions & 3 deletions deepchem/feat/graph_features.py
Expand Up @@ -114,7 +114,7 @@ def safe_index(l, e):
return len(l)


class GraphConvConstants(enum.Enum):
class GraphConvConstants(object):
"""Allowed Atom Types."""
possible_atom_list = [
'C', 'N', 'O', 'S', 'F', 'P', 'Cl', 'Mg', 'Na', 'Br', 'Fe', 'Ca', 'Cu',
Expand Down Expand Up @@ -690,9 +690,10 @@ def __init__(self, graph_distance=True, explicit_H=False,
# If uses use_chirality
self.use_chirality = use_chirality
if self.use_chirality:
self.bt_len = GraphConvConstants.bond_fdim_base + len(possible_bond_stereo)
self.bt_len = int(
GraphConvConstants.bond_fdim_base) + len(possible_bond_stereo)
else:
self.bt_len = GraphConvConstants.bond_fdim_base
self.bt_len = int(GraphConvConstants.bond_fdim_base)

def _featurize(self, mol):
"""Encodes mol as a WeaveMol object."""
Expand Down
4 changes: 0 additions & 4 deletions deepchem/models/graph_models.py
Expand Up @@ -430,10 +430,6 @@ def __init__(self,
if dropout is None or dropout == 0.0:
raise ValueError('Dropout must be included to predict uncertainty')

############################################
print("self.dropout")
print(self.dropout)
############################################
# Build the model.

atom_features = Input(shape=(self.n_atom_feat,))
Expand Down

0 comments on commit e8d4765

Please sign in to comment.