Tensorflow.js tf.data.Dataset class .take() Method
Tensorflow.js is an open-source library that is developed by Google for running machine learning models as well as deep learning neural networks in the browser or node environment.
The .take() method is used to form a dataset with maximum count foremost items out of the stated dataset.
- count: It is the number of elements present in the stated dataset that is to be utilized to create the different dataset. Moreover, in case the count is not defined or else negative or is higher than the dimension of the stated dataset then the newly created dataset will hold each item of the given dataset.
Return Value: It returns tf.data.Dataset.
11 12 31 43
31.1 81.2 5.1 0 NaN a