Skip to content
This repository was archived by the owner on Jul 1, 2023. It is now read-only.

Commit 315ebf7

Browse files
committed
remove mistakenly duplicated poisson loss
1 parent 83b9196 commit 315ebf7

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

Sources/TensorFlow/Loss.swift

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -107,20 +107,6 @@ public func logcoshLoss<Scalar: TensorFlowFloatingPoint>(
107107
return (logcosh(x: predicted - expected)).mean()
108108
}
109109

110-
111-
/// Returns the Poisson loss between predictions and expectations.
112-
///
113-
/// - Parameters:
114-
/// - predicted: Predicted outputs from a neural network.
115-
/// - expected: Expected values, i.e. targets, that correspond to the correct output.
116-
@differentiable(wrt: predicted)
117-
public func poissonLoss<Scalar: TensorFlowFloatingPoint>(
118-
predicted: Tensor<Scalar>, expected: Tensor<Scalar>
119-
) -> Tensor<Scalar> {
120-
return (predicted - expected * log(predicted)).mean()
121-
}
122-
123-
124110
/// Returns the Poisson loss between predictions and expectations.
125111
///
126112
/// - Parameters:

0 commit comments

Comments
 (0)