Skip to content

Commit

Permalink
additional documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
pstjohn committed Nov 18, 2021
1 parent 5854940 commit 8324e88
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
5 changes: 5 additions & 0 deletions nfp/layers/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
"""
Keras layers that handle the node, edge, and connectivity features returned by
the preprocessor classes.
"""

from .graph_layers import EdgeUpdate, GlobalUpdate, NodeUpdate
from .layers import *
3 changes: 3 additions & 0 deletions nfp/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
"""
Tensorflow loss functions that accept masked true values (with np.nan)
"""
from .losses import *
4 changes: 4 additions & 0 deletions nfp/preprocessing/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
"""
Utilities for converting graphs into sets of tensors for machine learning models
"""

from .crystal_preprocessor import *
from .mol_preprocessor import *
6 changes: 5 additions & 1 deletion nfp/preprocessing/preprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,11 @@ def construct_feature_matrices(self,
*args,
train=False,
**kwargs) -> Dict[str, np.ndarray]:
"""DEPRECATED, use __call__ instead"""
"""
.. deprecated:: 0.3.0
`construct_feature_matrices` will be removed in 0.4.0, use
`__call__` instead
"""
warnings.warn(
"construct_feature_matrices is deprecated, use `call` instead as "
"of nfp 0.4.0", DeprecationWarning)
Expand Down

0 comments on commit 8324e88

Please sign in to comment.