{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Introduction to keras\n", "\n", "This is a short introductive tutorial for [keras](http://keras.io). Keras is a high-level interface for machine learning with **neural networks**.\n", "\n", "In order to introduce and illustrate the principle of neural networks, we will consider the well-known classification problem of **iris species**." ] }, { "cell_type": "markdown", "metadata": { "collapsed": true }, "source": [ "## Classification of iris species\n", "\n", "*Iris setosa*, *Iris versicolor* and *Iris virginica* are closely-related species. They differ by the **size** of their petal and sepal.\n", "\n", "![flowers](./images/flowers.png)\n", "\n", "For instance the dataset below list the **height** and **width** of the petals of different specimens, and **whether** these specimens belong to the species *setosa*. " ] }, { "cell_type": "code", "execution_count": 1, "metadata": { "collapsed": false }, "outputs": [ { "data": { "text/html": [ "
\n", " | petal length (cm) | \n", "petal width (cm) | \n", "setosa | \n", "
---|---|---|---|
0 | \n", "1.3 | \n", "0.2 | \n", "1.0 | \n", "
1 | \n", "1.6 | \n", "0.4 | \n", "1.0 | \n", "
2 | \n", "4.7 | \n", "1.2 | \n", "0.0 | \n", "
3 | \n", "5.5 | \n", "2.1 | \n", "0.0 | \n", "
4 | \n", "1.3 | \n", "0.3 | \n", "1.0 | \n", "
5 | \n", "3.7 | \n", "1.0 | \n", "0.0 | \n", "