Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
DzvinkaYarish committed Jun 14, 2022
1 parent 82f0994 commit 8085ecf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion chemprop/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def get_loss_func(args: Namespace) -> nn.Module:
return nn.BCEWithLogitsLoss(reduction='none')

if args.dataset_type == 'regression':
return nn.L1Loss(reduction='none')
return nn.L2Loss(reduction='none')

if args.dataset_type == 'multiclass':
return nn.CrossEntropyLoss(reduction='none')
Expand Down
3 changes: 2 additions & 1 deletion train.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Trains a model on a dataset."""
"""Entrypoint fot training."""
"""Single or cross-validation training"""

from chemprop.parsing import parse_train_args
from chemprop.train import cross_validate
Expand Down

0 comments on commit 8085ecf

Please sign in to comment.