@@ -178,18 +178,20 @@ public BinaryCrossentropy(Ops tf, boolean fromLogits, float labelSmoothing, Redu
178
178
public BinaryCrossentropy (
179
179
Ops tf , String name , boolean fromLogits , float labelSmoothing , Reduction reduction ) {
180
180
super (tf , name , reduction );
181
- if (labelSmoothing < 0 || labelSmoothing > 1 )
182
- throw new IllegalArgumentException ("labelSmoothing must be >= 0. and <= 1, found " + labelSmoothing );
181
+ if (labelSmoothing < 0 || labelSmoothing > 1 )
182
+ throw new IllegalArgumentException (
183
+ "labelSmoothing must be >= 0. and <= 1, found " + labelSmoothing );
183
184
this .fromLogits = fromLogits ;
184
185
this .labelSmoothing = labelSmoothing ;
185
186
}
186
187
187
188
/**
188
189
* Generates an Operand that calculates the loss.
189
190
*
190
- * If run in Graph mode, the computation will throw {@link org.tensorflow.exceptions.TFInvalidArgumentException}
191
- * if the predictions values are outside the range o [0. to 1.]. In Eager Mode, this call
192
- * will throw {@link IllegalArgumentException}, if the predictions values are outside the range o [0. to 1.]
191
+ * <p>If run in Graph mode, the computation will throw {@link
192
+ * org.tensorflow.exceptions.TFInvalidArgumentException} if the predictions values are outside the
193
+ * range o [0. to 1.]. In Eager Mode, this call will throw {@link IllegalArgumentException}, if
194
+ * the predictions values are outside the range o [0. to 1.]
193
195
*
194
196
* @param labels the truth values or labels
195
197
* @param predictions the predictions, values must be in the range [0. to 1.] inclusive.
0 commit comments