Search code examples
tensorflowkeraspycharmmnist

Tensorflow Keras Dataset Filepath within PyCharm


I have seen this question and the answer. This doesn't help. I have MAC environment. Used Anaconda. And there is no .Keras folder under users directory.

I was following a tutorial. To load the built-in MNIST dataset I used the following codes:

from tensorflow.keras.datasets import mnist

# Load MNIST data 
(x_train, y_train), (x_test,y_test) = mnist.load_data()

I am using Anaconda to install the packages and Pycharm for coding. Imported the environment in PyCharm. After showing download messages in console, it's loading the images directly from second time.

enter image description here

Nonetheless, I want to see the downloaded MNIST images/data to get a complete understanding. I mean I want to see if it's a zip / raw images / text data etc. I don't see a newly created folder. Does anyone where the dataset was saved by Keras within PyCharm project?


Solution

  • By default the data should be saved in ~/tensorflow_datasets/