TensorFlow 面试题与答案
Question: How can you handle missing data in a TensorFlow dataset?Answer: Missing data can be handled using the tf.data.Dataset.skip and tf.data.Dataset.filter operations to skip or filter out examples with missing values.Example: dataset = dataset.filter(lambda x, y: tf.math.logical_not(tf.reduce_any(tf.math.is_nan(x)))) |
保存以便复习
收藏此条目、标记为困难题,或将其加入复习集合。
这有帮助吗? 是 否
用户评价最有帮助的内容: