Skip to content

Commit 0d84071

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 35ad402 commit 0d84071

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

maths/softmax.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ def softmax(vector: np.ndarray, axis: int = -1) -> np.ndarray:
6262
softmax_vector = exponent_vector / sum_of_exponents
6363
return softmax_vector
6464

65+
6566
if __name__ == "__main__":
6667
# Single value
6768
print(softmax((0,)))

0 commit comments

Comments
 (0)