Coder Social home page Coder Social logo

problem-set-tensorflow's Introduction

Emerging-Technologies-jupyter-solution

Solution to problem Sheet 4 for Emerging Technologies module. The module is taught to undergraduate students at GMIT in the Department of Computer Science and Applied Physics. The lecturer is Ian McLoughlin.

The Jupiter file includes two solutions:

The first solution adapted from Tensorflow website: https://www.tensorflow.org/get_started/estimator

The second solution completed using Keras libraries. This solution was originally adapted from salmanahmad4u and then step by step reworked during labs and lectures of Emerging Technologies module with the lecturer. Reworked code adapted from: https://github.com/emerging-technologies/keras-iris/blob/master/iris_nn.py

Problem set: Tensorflow

These problems relate to the Python package Tensorflow. We will again use the famous iris data set. Save your work as a single Jupyter notebook file in a GitHub repository. Include any required data files, a README, and a gitignore file in the repository.

1. Use Tensorflow to create model

Use Tensorflow to create a model to predict the species of Iris from a flower's sepal width, sepal length, petal width, and petal length.

2. Split the data into training and testing

Split the data set into a training set and a testing set. You should investigate the best way to do this, and list any online references used in your notebook. If you wish to, you can write some code to randomly separate the data on the fly.

3. Train the model

Use the testing set to train your model.

4. Test the model

Use the testing set to test your model, clearly calculating and displaying the error rate.

How to run?

Install : Anaconda

Install numpy

conda install numpy

cd to the repository folder use:

$ jupyter notebook

to start jupyter notebook

The first solution may require some time to run in Jupiter.

Keras library was used for the second solutiuon model generation.

use:

easy_install keras

for keras instalation.

problem-set-tensorflow's People

Contributors

andryuha77 avatar

Watchers

James Cloos avatar  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.