Skip to content

Commit

Permalink
Small fix to uncertainty computation and added docs/requirements.
Browse files Browse the repository at this point in the history
  • Loading branch information
muammar committed Feb 15, 2020
1 parent 2c30d53 commit 641e4eb
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
15 changes: 15 additions & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
joblib
seaborn
dask_ml
ase
scipy
numpy
pip
pandas
plotly
pytest
msgpack_numpy
matplotlib
dscribe
msgpack_python
scikit_learn
8 changes: 8 additions & 0 deletions docs/source/ml4chem.atomistic.models.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,14 @@ ml4chem.atomistic.models.neuralnetwork module
:undoc-members:
:show-inheritance:

ml4chem.atomistic.models.rt module
----------------------------------

.. automodule:: ml4chem.atomistic.models.rt
:members:
:undoc-members:
:show-inheritance:

ml4chem.atomistic.models.se3net module
--------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion ml4chem/atomistic/models/loss.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def AtomicMSELoss(outputs, targets, atoms_per_image, uncertainty=None):
outputs_atom = torch.div(outputs, atoms_per_image)
targets_atom = torch.div(targets, atoms_per_image)
loss = (
criterion(outputs_atom, targets_atom) / (2 * torch.pow(uncertainty, 1))
criterion(outputs_atom, targets_atom) / (2 * torch.pow(uncertainty, 2))
).sum() * 0.5
return loss

Expand Down

0 comments on commit 641e4eb

Please sign in to comment.