How to remove columns index wise from a 'prefetch type' dataset?

Viewed 12

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.

0 Answers
Related