Commit c1f35955 authored by Yulv-git's avatar Yulv-git
Browse files

Fix some typos in official/.

parent 96a8d744
...@@ -218,7 +218,7 @@ class ImageClassificationTask(base_task.Task): ...@@ -218,7 +218,7 @@ class ImageClassificationTask(base_task.Task):
"""Does forward and backward. """Does forward and backward.
Args: Args:
inputs: A tuple of of input tensors of (features, labels). inputs: A tuple of input tensors of (features, labels).
model: A tf.keras.Model instance. model: A tf.keras.Model instance.
optimizer: The optimizer for this training step. optimizer: The optimizer for this training step.
metrics: A nested structure of metrics objects. metrics: A nested structure of metrics objects.
...@@ -278,7 +278,7 @@ class ImageClassificationTask(base_task.Task): ...@@ -278,7 +278,7 @@ class ImageClassificationTask(base_task.Task):
"""Runs validatation step. """Runs validatation step.
Args: Args:
inputs: A tuple of of input tensors of (features, labels). inputs: A tuple of input tensors of (features, labels).
model: A tf.keras.Model instance. model: A tf.keras.Model instance.
metrics: A nested structure of metrics objects. metrics: A nested structure of metrics objects.
......
...@@ -64,7 +64,7 @@ class BalancedPositiveNegativeSampler(minibatch_sampler.MinibatchSampler): ...@@ -64,7 +64,7 @@ class BalancedPositiveNegativeSampler(minibatch_sampler.MinibatchSampler):
sorted_indices_tensor: A sorted int32 tensor of shape [N] which contains sorted_indices_tensor: A sorted int32 tensor of shape [N] which contains
the signed indices of the examples where the sign is based on the label the signed indices of the examples where the sign is based on the label
value. The examples that cannot be sampled are set to 0. It samples value. The examples that cannot be sampled are set to 0. It samples
atmost sample_size*positive_fraction positive examples and remaining at most sample_size*positive_fraction positive examples and remaining
from negative examples. from negative examples.
sample_size: Size of subsamples. sample_size: Size of subsamples.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment