clearml-docs/docs/guides/frameworks/tensorflow/tensorflow_mnist.md

42 lines
1.6 KiB
Markdown
Raw Normal View History

2021-05-13 23:48:51 +00:00
---
title: TensorFlow MNIST
---
The [tensorflow_mnist.py](https://github.com/allegroai/clearml/blob/master/examples/frameworks/tensorflow/tensorflow_mnist.py)
2022-01-13 07:42:36 +00:00
example demonstrates the integration of ClearML into code that uses TensorFlow and Keras to train a neural network on
2021-05-13 23:48:51 +00:00
the Keras built-in [MNIST](https://www.tensorflow.org/api_docs/python/tf/keras/datasets/mnist) handwritten digits dataset.
2022-01-30 10:54:40 +00:00
When the script runs, it creates an experiment named `Tensorflow v2 mnist with summaries` in the `examples` project.
2021-05-13 23:48:51 +00:00
## Scalars
2022-05-22 07:27:30 +00:00
The loss and accuracy metric scalar plots appear in the experiment's page in the **ClearML web UI** under
**SCALARS**. Resource utilization plots, which are titled **:monitor: machine**, also appear in the **SCALARS** tab.
2021-05-13 23:48:51 +00:00
![image](../../../img/examples_tensorflow_mnist_06.png)
## Hyperparameters
2022-05-26 06:54:41 +00:00
ClearML automatically logs TensorFlow Definitions. They appear in **CONFIGURATION** **>** **HYPER PARAMETERS**
2021-05-13 23:48:51 +00:00
**>** **TF_DEFINE**.
![image](../../../img/examples_tensorflow_mnist_01.png)
2021-05-18 22:31:01 +00:00
## Console
2021-05-13 23:48:51 +00:00
2022-05-22 07:27:30 +00:00
All console output appears in **CONSOLE**.
2021-05-13 23:48:51 +00:00
![image](../../../img/examples_tensorflow_mnist_05.png)
## Artifacts
2022-01-13 07:42:36 +00:00
Models created by the experiment appear in the experiments **ARTIFACTS** tab. ClearML automatically logs and tracks
models and any snapshots created using TensorFlow.
2021-05-13 23:48:51 +00:00
![image](../../../img/examples_tensorflow_mnist_03.png)
2022-01-13 07:42:36 +00:00
Clicking on a models name takes you to the [models page](../../../webapp/webapp_model_viewing.md), where you can
view the models details and access the model.
2021-05-13 23:48:51 +00:00
![image](../../../img/examples_tensorflow_mnist_10.png)