Skip to content

Commit

Permalink
Add documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
mathias-nillion committed Jun 14, 2024
1 parent c537d50 commit e21c92a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions nada_ai/linear_model/linear_regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ def __init__(
) -> None:
"""
Initialization.
NOTE: this model will produce logistic regression logits instead of
the actual output probabilities!
To convert logits to probabilities, they need to be passed through a
sigmoid activation function.
Args:
in_features (int): Number of input features to regression.
Expand All @@ -57,6 +61,10 @@ def __init__(
def forward(self, x: na.NadaArray) -> na.NadaArray:
"""
Forward pass.
NOTE: this forward pass will return the logistic regression logits instead
of the actual output probabilities!
To convert logits to probabilities, they need to be passed through a
sigmoid activation function.
Args:
x (na.NadaArray): Input array.
Expand Down

0 comments on commit e21c92a

Please sign in to comment.