The Jupyter Notebook is an open-source web application that allows you to create and share documents that contain live code, equations, visualizations and narrative text. It is often used for data cleaning and transformation, numerical simulation, statistical modeling, data visualization, machine learning, and more.
In Kubeflow dashboard, click on Create a new Notebook server:
Specify a name myjupyter for the notebook:
In the Image section, select jupyterlab and from the dropdown select tensorflow-2.x image whose name ends in cpu (not gpu) from the dropbown box:
Change the CPU value to 1.0:
Scroll to the bottom, take all other defaults, and click on LAUNCH.
It takes a few seconds for the Jupyter notebook to come online. Click on CONNECT
This connects to the notebook and opens the notebook interface in a new browser tab.
Click on New, select Python3
This creates an empty Python 3 Jupyter notebook
Copy the sample training code and paste it in the first code block. This Python sample code uses TensorFlow to create a training model for MNIST database. Click on Run to load this code in notebook.
This also creates a new code block. Copy
main() in this new code block and click on Run again
This starts the model training and the output is shown on the notebook:
The first few lines shows that TensorFlow and Keras dataset is downloaded. Training data set is 60k images and test data set is 10k images. Hyperparameters used for the training, outputs from five epochs, and finally the model accuracy is shown.