Tensorflow.js tf.data.Dataset class .toArray() 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 .toArray() method is used to accumulate each elements of the stated dataset within an array.
Parameters: This method does not hold any parameter.
Return Value: It returns Promise( T ).
- This method applies for limited datasets only i.e. the one that fits in the memory.
- It is utilized for testing purpose and should be mostly abstained when conceivable.
11, 12, 31, 43, 15, 64
5.7, -16, 0.31, 0, , NaN