Git Product home page Git Product logo

iris-neural-network's Introduction

Iris Data Set - Keras Neural Network

Emerging Technologies - Problem Sheet 4

This respository contains solutions to a set of problems concerning neural networks using Tensorflow. For the purpose of this example we apply the Iris data set previously used in another problem set you can you find HERE!

Previously, in the repository linked above we looked at loading the Iris csv data with Python and inspecting it using Matplotlib's Pyplot. We then investigated how to determine the best fit line for the data set and various subsets using Numpy's polyfit and by also writing our own gradient descent algorithm. We took a brief look a Scatterplot matrices using a relatively new library called Seaborn.

Problem Set

In this Problem Set we look at the following issues:

  • Preparing the data
  • Splitting data in two subsets: Training and Testing
  • Creating a Neural Network Model
  • Training the Model using the Training data subset
  • Evalutation of the Model's accuarcy using the Testing data subset
  • Prediction of class specification of Iris Flower species using the Model

All of the Python code relating to the Problem Set can be found in the juptyer notebook housed in this repository, which also contains a wide range of Markdown notes documenting and describing the tasks being carried out.

Click this link to jump straight into the Notebook

The Iris Data Set

The data set contains samples of 3 different types of Iris plant.

  • Setosa
  • Versicolor
  • Virginica

The data samples contain 50 samples for each of the different types of species. Each sample is composed of 4 distinct features of the plants including:

  • Sepal Length
  • Sepal Width
  • Petal Length
  • Petal Width

Usage & Dependencies

Should you want to clone this repository and adapt the code for yourself, you will need the prerequisites that are mentioned below otherwise you can simply:

1. Clone the repository

git clone https://github.com/damiannolan/iris-neural-network.git

2. Start Jupyter Notebook

jupyter notebook

If you are new to Python you may want to follow to the instructions below for installing a number of different dependencies.

Python

You can download for Windows by following instructions here!. If you are on MacOS I recommend using Homebrew

brew install python3

Alternatively you can download a larger distribution which will include a number of different packages from Anaconda.

Numpy

You can obtain Numpy, SciPy and Matplotlib with:

brew tap homebrew/science && brew install python numpy scipy matplotlib

Jupyter Notebook

pip3 install jupyter

Tensorflow

pip3 install tensorflow

Keras

pip3 install keras

iris-neural-network's People

Contributors

damiannolan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.