Issue
This Content is from Stack Overflow. Question asked by XYZ
I am editing one Kaggle notebook and implementing one of my own algorithms. There I start to face one problem regarding the dataset. The type of the dataset is tensorFlow.python.data.ops.dataset_ops.PrefetchDataset
. I have to split it into 70/30. I tried using dataset.take(1000)
and dataset.skip(1000)
, It did not workout. Also I am not able to split it like x_train,y_train,x_test, y_test. Moreover, I want to remove some specific index-wise rows from my dataset but that is not possible here. Is there any way out to convert it into dataframe then I can easily do all of these tasks.
Solution
This question is not yet answered, be the first one who answer using the comment. Later the confirmed answer will be published as the solution.
This Question and Answer are collected from stackoverflow and tested by JTuto community, is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.