Tensorflow.js tf.data.Dataset.filter() Function
The tf.data.Dataset.filter() function is used to filter the dataset according to predicate.
- predicate: A function mapping a dataset element to a boolean or a Promise for one.
Return Value: It returns tf.data.Dataset
12 25 34 67 43
36 24 54 72 90 12