0
$\begingroup$

A simple preview of a pandas.DataFrame is typically done by calling head(k) and will simply return the first k rows of the data frame.

With the advent of TensorFlow 2.0, the new trend is to use tf.data.Dataset instead as it lends itself better ETL. However, viewing such datasets, or batches thereof, seems to require unwieldy calls to tf.data.Dataset.take(), which, to boot, seem to randomly select the batches at each call. Isn't there simpler and more intuitive ways to view the first k elements in a TensorFlow dataset?

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.