2021-05-13 23:48:51 +00:00
|
|
|
|
---
|
2021-12-22 08:54:04 +00:00
|
|
|
|
title: AutoKeras IMDB
|
2021-05-13 23:48:51 +00:00
|
|
|
|
---
|
|
|
|
|
The [autokeras_imdb_example.py](https://github.com/allegroai/clearml/blob/master/examples/frameworks/autokeras/autokeras_imdb_example.py) example
|
2022-01-13 07:42:36 +00:00
|
|
|
|
script demonstrates the integration of ClearML into code, which uses [autokeras](https://github.com/keras-team/autokeras).
|
|
|
|
|
|
|
|
|
|
The example does the following:
|
|
|
|
|
* Trains text classification networks on the Keras built-in [IMDB](https://keras.io/api/datasets/imdb/) dataset, using
|
|
|
|
|
the autokeras [TextClassifier](https://autokeras.com/text_classifier/) class, and searches for the best model.
|
|
|
|
|
* Uses two TensorBoard callbacks, one for training and one for testing.
|
|
|
|
|
* ClearML automatically logs everything the code sends to TensorBoard.
|
|
|
|
|
* Creates an experiment named `autokeras imdb example with scalars`, which is associated with the `autokeras` project.
|
2021-05-13 23:48:51 +00:00
|
|
|
|
|
|
|
|
|
## Scalars
|
|
|
|
|
|
|
|
|
|
The loss and accuracy metric scalar plots appear in **RESULTS** **>** **SCALARS**, along with the resource utilization plots,
|
|
|
|
|
which are titled **:monitor: machine**.
|
|
|
|
|
|
|
|
|
|
![image](../../../img/examples_keras_14.png)
|
|
|
|
|
|
|
|
|
|
## Hyperparameters
|
|
|
|
|
|
|
|
|
|
**ClearML** automatically logs TensorFlow Definitions. They appear in **CONFIGURATIONS** **>** **HYPER PARAMETERS** **>** **TF_DEFINE**.
|
|
|
|
|
|
|
|
|
|
![image](../../../img/examples_keras_16.png)
|
|
|
|
|
|
2021-05-18 22:31:01 +00:00
|
|
|
|
## Console
|
2021-05-13 23:48:51 +00:00
|
|
|
|
|
2021-05-18 22:31:01 +00:00
|
|
|
|
Text printed to the console for training progress, as well as all other console output, appear in **RESULTS** **>** **CONSOLE**.
|
2021-05-13 23:48:51 +00:00
|
|
|
|
|
|
|
|
|
![image](../../../img/examples_keras_15.png)
|
|
|
|
|
|
|
|
|
|
## Artifacts
|
|
|
|
|
|
2022-01-13 07:42:36 +00:00
|
|
|
|
Models created by the experiment appear in the experiment’s **ARTIFACTS** tab.
|
2021-05-13 23:48:51 +00:00
|
|
|
|
|
|
|
|
|
![image](../../../img/examples_keras_18.png)
|
|
|
|
|
|
2022-01-13 07:42:36 +00:00
|
|
|
|
Clicking on the model's name takes you to the [model’s page](../../../webapp/webapp_model_viewing.md), where you can view
|
|
|
|
|
the model’s details and access the model.
|
2021-05-13 23:48:51 +00:00
|
|
|
|
|
|
|
|
|
![image](../../../img/examples_keras_17.png)
|