Skip to content

Commit

Permalink
add missing params to docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
c-w-feldmann committed Apr 22, 2024
1 parent 0cf0eda commit 0784326
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions molpipeline/estimators/chemprop/component_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,12 @@ def __init__(
Activation function.
criterion : LossFunction or None, optional (default=None)
Loss function. None defaults to BCELoss.
task_weights : Tensor or None, optional (default=None)
Task weights.
threshold : float or None, optional (default=None)
Threshold for binary classification.
output_transform : UnscaleTransform or None, optional (default=None)
Transformations to apply to the output. None defaults to UnscaleTransform.
"""
if criterion is None:
task_weights = torch.ones(n_tasks) if task_weights is None else task_weights
Expand Down

0 comments on commit 0784326

Please sign in to comment.