Skip to content

Commit 914f16f

Browse files
committed
Fixed JavaDoc to change label_smoothing to labelSmoothing.
1 parent 3e0669e commit 914f16f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tensorflow-framework/src/main/java/org/tensorflow/framework/losses/BinaryCrossentropy.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public BinaryCrossentropy(Ops tf, String name, boolean fromLogits) {
125125
* @param fromLogits Whether to interpret predictions as a tensor of logit values
126126
* @param labelSmoothing A number in the range, [0, 1]. When 0, no smoothing occurs. When > 0,
127127
* compute the loss between the predicted labels and a smoothed version of the true labels,
128-
* where the smoothing squeezes the labels towards 0.5. Larger values of label_smoothing
128+
* where the smoothing squeezes the labels towards 0.5. Larger values of labelSmoothing
129129
* correspond to heavier smoothing.
130130
*/
131131
public BinaryCrossentropy(Ops tf, boolean fromLogits, float labelSmoothing) {
@@ -140,7 +140,7 @@ public BinaryCrossentropy(Ops tf, boolean fromLogits, float labelSmoothing) {
140140
* @param fromLogits Whether to interpret predictions as a tensor of logit values
141141
* @param labelSmoothing A number in the range, [0, 1]. When 0, no smoothing occurs. When > 0,
142142
* compute the loss between the predicted labels and a smoothed version of the true labels,
143-
* where the smoothing squeezes the labels towards 0.5. Larger values of label_smoothing
143+
* where the smoothing squeezes the labels towards 0.5. Larger values of labelSmoothing
144144
* correspond to heavier smoothing.
145145
*/
146146
public BinaryCrossentropy(Ops tf, String name, boolean fromLogits, float labelSmoothing) {
@@ -154,7 +154,7 @@ public BinaryCrossentropy(Ops tf, String name, boolean fromLogits, float labelSm
154154
* @param fromLogits Whether to interpret predictions as a tensor of logit values
155155
* @param labelSmoothing A number in the range, [0, 1]. When 0, no smoothing occurs. When > 0,
156156
* compute the loss between the predicted labels and a smoothed version of the true labels,
157-
* where the smoothing squeezes the labels towards 0.5. Larger values of label_smoothing
157+
* where the smoothing squeezes the labels towards 0.5. Larger values of labelSmoothing
158158
* correspond to heavier smoothing.
159159
* @param reduction Type of Reduction to apply to the loss.
160160
*/
@@ -170,7 +170,7 @@ public BinaryCrossentropy(Ops tf, boolean fromLogits, float labelSmoothing, Redu
170170
* @param fromLogits Whether to interpret predictions as a tensor of logit values
171171
* @param labelSmoothing A number in the range, [0, 1]. When 0, no smoothing occurs. When > 0,
172172
* compute the loss between the predicted labels and a smoothed version of the true labels,
173-
* where the smoothing squeezes the labels towards 0.5. Larger values of label_smoothing
173+
* where the smoothing squeezes the labels towards 0.5. Larger values of labelSmoothing
174174
* correspond to heavier smoothing.
175175
* @param reduction Type of Reduction to apply to the loss.
176176
* @throws IllegalArgumentException if labelSmoothing is not in the inclusive range of 0. - 1.

0 commit comments

Comments
 (0)