{ "cells": [ { "cell_type": "raw", "metadata": {}, "source": [ "---\n", "title: \"Scikit-Learn End-to-End Example - Iris\"\n", "date: 2021-02-24\n", "type: technical_note\n", "draft: false\n", "---" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Iris Flower Classification and Serving Using SkLearn, HopsML, and the Hopsworks Feature Store\n", "\n", "In this notebook we will, \n", "\n", "1. Load the Iris Flower dataset from HopsFS\n", "2. Do feature engineering on the dataset\n", "3. Save the features to the feature store\n", "4. Read the feature data from the feature store\n", "5. Train a KNN Model using SkLearn\n", "6. Save the trained model to HopsFS\n", "7. Launch a serving instance to serve the trained model\n", "8. Send some prediction requests to the served model\n", "9. Monitor the predictions through Kafka\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Imports" ] }, { "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 |
---|---|---|---|---|---|
6 | application_1617283456172_0007 | pyspark | idle | Link | Link |