Hi! You’re on the right track. To resolve this, let’s go back a bit to the blank exercise. The last three lines of the boilerplate should look like:
outputs[_transformed_name(_VOLUME_KEY)] = tf.cast(
# Use `tf.greater` to check if the traffic volume in a row is greater than the mean of the entire traffic volumn column
tf.greater(None, None(tf.cast(inputs[_VOLUME_KEY], tf.float32))),
tf.int64)
You should only modify the second line and only the None
placeholders. inputs[_VOLUME_KEY]
should be cast into a float. Then the result of tf.greater
will be cast into tf.int64
. Hope this helps!