Skip to content

Commit faaa92f

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

machine_learning/label_smoothing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,4 +175,4 @@ def cross_entropy_loss(
175175
print("\nCross-entropy loss with smoothed target vs confident prediction:")
176176
smoothed = smoother.smooth(2)
177177
confident_pred = np.array([0.01, 0.01, 0.96, 0.01, 0.01])
178-
print(f" Loss = {cross_entropy_loss(smoothed, confident_pred):.4f}")
178+
print(f" Loss = {cross_entropy_loss(smoothed, confident_pred):.4f}")

0 commit comments

Comments
 (0)