Skip to content

Commit

Permalink
Update docs and rerun training, fix small bugs in save model.
Browse files Browse the repository at this point in the history
  • Loading branch information
PatReis committed Dec 12, 2023
1 parent 82fde0f commit 9246d83
Show file tree
Hide file tree
Showing 52 changed files with 2,046 additions and 27 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ e_idx = ks.layers.Input(shape=(None, 2), dtype="int64", name="edge_indices")
total_n = ks.layers.Input(shape=(), dtype="int64", name="total_nodes") # Or mask
total_e = ks.layers.Input(shape=(), dtype="int64", name="total_edges") # Or mask

n, idx, batch_id, _, _, _, _, _ = CastBatchedIndicesToDisjoint()([ns, e_idx, total_n, total_e])
n, idx, batch_id, _, _, _, _, _ = CastBatchedIndicesToDisjoint(uses_mask=False)([ns, e_idx, total_n, total_e])
n_in_out = GatherNodes()([n, idx])
node_messages = ks.layers.Dense(64, activation='relu')(n_in_out)
node_updates = AggregateLocalEdges()([n, node_messages, idx])
Expand Down Expand Up @@ -177,6 +177,7 @@ original implementations (with proper licencing).
* **[MAT](kgcnn/literature/MAT)**: [Molecule Attention Transformer](https://arxiv.org/abs/2002.08264) by Maziarka et al. (2020)
* **[MEGAN](kgcnn/literature/MEGAN)**: [MEGAN: Multi-explanation Graph Attention Network](https://link.springer.com/chapter/10.1007/978-3-031-44067-0_18) by Teufel et al. (2023)
* **[Megnet](kgcnn/literature/Megnet)**: [Graph Networks as a Universal Machine Learning Framework for Molecules and Crystals](https://doi.org/10.1021/acs.chemmater.9b01294) by Chen et al. (2019)
* **[MoGAT](kgcnn/literature/MoGAT)**: [Multi-order graph attention network for water solubility prediction and interpretation](https://www.nature.com/articles/s41598-022-25701-5) by Lee et al. (2023)
* **[MXMNet](kgcnn/literature/MXMNet)**: [Molecular Mechanics-Driven Graph Neural Network with Multiplex Graph for Molecular Structures](https://arxiv.org/abs/2011.07457) by Zhang et al. (2020)
* **[NMPN](kgcnn/literature/NMPN)**: [Neural Message Passing for Quantum Chemistry](http://arxiv.org/abs/1704.01212) by Gilmer et al. (2017)
* **[Unet](kgcnn/literature/Unet)**: [Graph U-Nets](http://proceedings.mlr.press/v97/gao19a/gao19a.pdf) by H. Gao and S. Ji (2019)
Expand Down
10 changes: 10 additions & 0 deletions docs/source/kgcnn.backend.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
kgcnn.backend package
=====================

Module contents
---------------

.. automodule:: kgcnn.backend
:members:
:undoc-members:
:show-inheritance:
40 changes: 40 additions & 0 deletions docs/source/kgcnn.layers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,14 @@ kgcnn.layers.geom module
:undoc-members:
:show-inheritance:

kgcnn.layers.message module
---------------------------

.. automodule:: kgcnn.layers.message
:members:
:undoc-members:
:show-inheritance:

kgcnn.layers.mlp module
-----------------------

Expand All @@ -84,6 +92,14 @@ kgcnn.layers.norm module
:undoc-members:
:show-inheritance:

kgcnn.layers.polynom module
---------------------------

.. automodule:: kgcnn.layers.polynom
:members:
:undoc-members:
:show-inheritance:

kgcnn.layers.pooling module
---------------------------

Expand All @@ -92,6 +108,14 @@ kgcnn.layers.pooling module
:undoc-members:
:show-inheritance:

kgcnn.layers.relational module
------------------------------

.. automodule:: kgcnn.layers.relational
:members:
:undoc-members:
:show-inheritance:

kgcnn.layers.scale module
-------------------------

Expand All @@ -100,6 +124,22 @@ kgcnn.layers.scale module
:undoc-members:
:show-inheritance:

kgcnn.layers.set2set module
---------------------------

.. automodule:: kgcnn.layers.set2set
:members:
:undoc-members:
:show-inheritance:

kgcnn.layers.update module
--------------------------

.. automodule:: kgcnn.layers.update
:members:
:undoc-members:
:show-inheritance:

Module contents
---------------

Expand Down
10 changes: 10 additions & 0 deletions docs/source/kgcnn.literature.AttentiveFP.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
kgcnn.literature.AttentiveFP package
====================================

Module contents
---------------

.. automodule:: kgcnn.literature.AttentiveFP
:members:
:undoc-members:
:show-inheritance:
10 changes: 10 additions & 0 deletions docs/source/kgcnn.literature.CGCNN.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
kgcnn.literature.CGCNN package
==============================

Module contents
---------------

.. automodule:: kgcnn.literature.CGCNN
:members:
:undoc-members:
:show-inheritance:
10 changes: 10 additions & 0 deletions docs/source/kgcnn.literature.CMPNN.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
kgcnn.literature.CMPNN package
==============================

Module contents
---------------

.. automodule:: kgcnn.literature.CMPNN
:members:
:undoc-members:
:show-inheritance:
10 changes: 10 additions & 0 deletions docs/source/kgcnn.literature.DGIN.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
kgcnn.literature.DGIN package
=============================

Module contents
---------------

.. automodule:: kgcnn.literature.DGIN
:members:
:undoc-members:
:show-inheritance:
10 changes: 10 additions & 0 deletions docs/source/kgcnn.literature.DMPNN.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
kgcnn.literature.DMPNN package
==============================

Module contents
---------------

.. automodule:: kgcnn.literature.DMPNN
:members:
:undoc-members:
:show-inheritance:
10 changes: 10 additions & 0 deletions docs/source/kgcnn.literature.DimeNetPP.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
kgcnn.literature.DimeNetPP package
==================================

Module contents
---------------

.. automodule:: kgcnn.literature.DimeNetPP
:members:
:undoc-members:
:show-inheritance:
10 changes: 10 additions & 0 deletions docs/source/kgcnn.literature.EGNN.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
kgcnn.literature.EGNN package
=============================

Module contents
---------------

.. automodule:: kgcnn.literature.EGNN
:members:
:undoc-members:
:show-inheritance:
10 changes: 10 additions & 0 deletions docs/source/kgcnn.literature.GNNExplain.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
kgcnn.literature.GNNExplain package
===================================

Module contents
---------------

.. automodule:: kgcnn.literature.GNNExplain
:members:
:undoc-members:
:show-inheritance:
10 changes: 10 additions & 0 deletions docs/source/kgcnn.literature.GNNFilm.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
kgcnn.literature.GNNFilm package
================================

Module contents
---------------

.. automodule:: kgcnn.literature.GNNFilm
:members:
:undoc-members:
:show-inheritance:
10 changes: 10 additions & 0 deletions docs/source/kgcnn.literature.HDNNP2nd.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
kgcnn.literature.HDNNP2nd package
=================================

Module contents
---------------

.. automodule:: kgcnn.literature.HDNNP2nd
:members:
:undoc-members:
:show-inheritance:
10 changes: 10 additions & 0 deletions docs/source/kgcnn.literature.HamNet.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
kgcnn.literature.HamNet package
===============================

Module contents
---------------

.. automodule:: kgcnn.literature.HamNet
:members:
:undoc-members:
:show-inheritance:
10 changes: 10 additions & 0 deletions docs/source/kgcnn.literature.INorp.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
kgcnn.literature.INorp package
==============================

Module contents
---------------

.. automodule:: kgcnn.literature.INorp
:members:
:undoc-members:
:show-inheritance:
10 changes: 10 additions & 0 deletions docs/source/kgcnn.literature.MAT.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
kgcnn.literature.MAT package
============================

Module contents
---------------

.. automodule:: kgcnn.literature.MAT
:members:
:undoc-members:
:show-inheritance:
10 changes: 10 additions & 0 deletions docs/source/kgcnn.literature.MEGAN.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
kgcnn.literature.MEGAN package
==============================

Module contents
---------------

.. automodule:: kgcnn.literature.MEGAN
:members:
:undoc-members:
:show-inheritance:
10 changes: 10 additions & 0 deletions docs/source/kgcnn.literature.MXMNet.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
kgcnn.literature.MXMNet package
===============================

Module contents
---------------

.. automodule:: kgcnn.literature.MXMNet
:members:
:undoc-members:
:show-inheritance:
10 changes: 10 additions & 0 deletions docs/source/kgcnn.literature.Megnet.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
kgcnn.literature.Megnet package
===============================

Module contents
---------------

.. automodule:: kgcnn.literature.Megnet
:members:
:undoc-members:
:show-inheritance:
10 changes: 10 additions & 0 deletions docs/source/kgcnn.literature.MoGAT.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
kgcnn.literature.MoGAT package
==============================

Module contents
---------------

.. automodule:: kgcnn.literature.MoGAT
:members:
:undoc-members:
:show-inheritance:
10 changes: 10 additions & 0 deletions docs/source/kgcnn.literature.NMPN.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
kgcnn.literature.NMPN package
=============================

Module contents
---------------

.. automodule:: kgcnn.literature.NMPN
:members:
:undoc-members:
:show-inheritance:
10 changes: 10 additions & 0 deletions docs/source/kgcnn.literature.PAiNN.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
kgcnn.literature.PAiNN package
==============================

Module contents
---------------

.. automodule:: kgcnn.literature.PAiNN
:members:
:undoc-members:
:show-inheritance:
10 changes: 10 additions & 0 deletions docs/source/kgcnn.literature.RGCN.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
kgcnn.literature.RGCN package
=============================

Module contents
---------------

.. automodule:: kgcnn.literature.RGCN
:members:
:undoc-members:
:show-inheritance:
10 changes: 10 additions & 0 deletions docs/source/kgcnn.literature.rGIN.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
kgcnn.literature.rGIN package
=============================

Module contents
---------------

.. automodule:: kgcnn.literature.rGIN
:members:
:undoc-members:
:show-inheritance:
21 changes: 21 additions & 0 deletions docs/source/kgcnn.literature.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,33 @@ Subpackages
.. toctree::
:maxdepth: 4

kgcnn.literature.AttentiveFP
kgcnn.literature.CGCNN
kgcnn.literature.CMPNN
kgcnn.literature.DGIN
kgcnn.literature.DMPNN
kgcnn.literature.DimeNetPP
kgcnn.literature.EGNN
kgcnn.literature.GAT
kgcnn.literature.GATv2
kgcnn.literature.GCN
kgcnn.literature.GIN
kgcnn.literature.GNNExplain
kgcnn.literature.GNNFilm
kgcnn.literature.GraphSAGE
kgcnn.literature.HDNNP2nd
kgcnn.literature.HamNet
kgcnn.literature.INorp
kgcnn.literature.MAT
kgcnn.literature.MEGAN
kgcnn.literature.MXMNet
kgcnn.literature.Megnet
kgcnn.literature.MoGAT
kgcnn.literature.NMPN
kgcnn.literature.PAiNN
kgcnn.literature.RGCN
kgcnn.literature.Schnet
kgcnn.literature.rGIN

Module contents
---------------
Expand Down
8 changes: 8 additions & 0 deletions docs/source/kgcnn.models.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ kgcnn.models package
Submodules
----------

kgcnn.models.casting module
---------------------------

.. automodule:: kgcnn.models.casting
:members:
:undoc-members:
:show-inheritance:

kgcnn.models.force module
-------------------------

Expand Down
21 changes: 21 additions & 0 deletions docs/source/kgcnn.optimizers.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
kgcnn.optimizers package
========================

Submodules
----------

kgcnn.optimizers.optimizers module
----------------------------------

.. automodule:: kgcnn.optimizers.optimizers
:members:
:undoc-members:
:show-inheritance:

Module contents
---------------

.. automodule:: kgcnn.optimizers
:members:
:undoc-members:
:show-inheritance:
Loading

0 comments on commit 9246d83

Please sign in to comment.