Skip to content

Commit 8f02c44

Browse files
csferngtensorflow-copybara
authored andcommitted
Remove line numbers in Tensorflow code URLs since they change all the time.
PiperOrigin-RevId: 269393713
1 parent 320918c commit 8f02c44

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

neural_structured_learning/keras/adversarial_regularization.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,8 @@ def resolve_metric(self, metric):
201201
# classification tasks with index labels. In such scenario the loss
202202
# function can help deduce the desired metric function since they share the
203203
# same input `(y_true, y_pred)`.
204-
# The list of such metrics is here:
205-
# https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/keras/engine/training_utils.py#L1018
204+
# The list of such metrics is defined in `get_metric_function()` in
205+
# https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/keras/engine/training_utils.py
206206
if metric not in ('accuracy', 'acc', 'crossentropy', 'ce'):
207207
return metric
208208
if self._is_binary_classification_loss():

0 commit comments

Comments
 (0)