{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "## maggy - MNIST Example\n", "---\n", "Updated: 27/04/2020" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "This notebook illustrates the usage of the maggy framework for asynchronous hyperparameter optimization on the fashion MNIST dataset. \n", "\n", "In this specific example we are using random search over three parameters and we are deploying the median early stopping rule in order to make use of the asynchrony of the framework. The Median Stopping Rule implements the simple strategy of stopping a trial if its performance falls below the median of other trials at similar points in time.\n", "\n", "We are using Keras for this example to build the model.\n", "\n", "This notebook has been tested with TensorFlow 1.15.0 and Hopsworks 1.3.\n", "Requires Python 3.6 or higher." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### 1. Spark Session" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Make sure you have a running Spark Session/Context available. On Hopsworks just execute a simple command to start the spark application." ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Starting Spark application\n" ] }, { "data": { "text/html": [ "
ID | YARN Application ID | Kind | State | Spark UI | Driver log |
---|---|---|---|---|---|
144 | application_1586968115220_0042 | pyspark | idle | Link | Link |