Commit 15c6486f authored by mufeili's avatar mufeili
Browse files

Update

parent 101355e8
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -251,7 +251,8 @@ class AttentiveFPModel(TorchModel):
      (only used when ``mode`` is 'classification'). Default to 2.
    self_loop: bool
      Whether to add self loops for the nodes, i.e. edges from nodes to themselves.
      Default to True.
      When input graphs have isolated nodes, self loops allow preserving the original feature
      of them in message passing. Default to True.
    kwargs
      This can include any keyword argument of TorchModel.
    """
+2 −1
Original line number Diff line number Diff line
@@ -308,7 +308,8 @@ class GATModel(TorchModel):
      (only used when ``mode`` is 'classification'). Default to 2.
    self_loop: bool
      Whether to add self loops for the nodes, i.e. edges from nodes to themselves.
      Default to True.
      When input graphs have isolated nodes, self loops allow preserving the original feature
      of them in message passing. Default to True.
    kwargs
      This can include any keyword argument of TorchModel.
    """
+2 −1
Original line number Diff line number Diff line
@@ -294,7 +294,8 @@ class GCNModel(TorchModel):
      (only used when ``mode`` is 'classification'). Default to 2.
    self_loop: bool
      Whether to add self loops for the nodes, i.e. edges from nodes to themselves.
      Default to True.
      When input graphs have isolated nodes, self loops allow preserving the original feature
      of them in message passing. Default to True.
    kwargs
      This can include any keyword argument of TorchModel.
    """
+2 −2
Original line number Diff line number Diff line
@@ -222,7 +222,7 @@ class MPNNModel(TorchModel):
               number_atom_features: int = 30,
               number_bond_features: int = 11,
               n_classes: int = 2,
               self_loop: bool = True,
               self_loop: bool = False,
               **kwargs):
    """
    Parameters
@@ -250,7 +250,7 @@ class MPNNModel(TorchModel):
      (only used when ``mode`` is 'classification'). Default to 2.
    self_loop: bool
      Whether to add self loops for the nodes, i.e. edges from nodes to themselves.
      Default to True.
      Generally, an MPNNModel does not require self loops. Default to False.
    kwargs
      This can include any keyword argument of TorchModel.
    """
+3 −0
Original line number Diff line number Diff line
@@ -465,3 +465,6 @@ MPNNModel

.. autoclass:: deepchem.models.torch_models.MPNNModel
  :members:

Note that this is an alternative implementation for MPNN and currently you can only import it from
``deepchem.models.torch_models``.