Skip to content

emersonloureiro/tensorflow-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tensorflow-examples

A set of examples using tensorflow for machine learning classification

Regression

Left Footprint Length and Height in Indian Adult Male Tamils

Dataset originally taken from here. Full dataset available here.

To run, cd into india_foot_height and run python india_foot_height.py. It'll print out the value of the cost function on each iteration of training and in the end plot the fit function on the dataset.

Classification

Iris Flower

Description of the dataset available here, and the actual dataset is available here.

To run, cd into iris-flower and run python iris-flower.py. It'll split the total dataset into training and test sets, train a neural network and then plot the value cost function over time.

Visual Learning

COIL-20

A convolutional neural network for image classification, using a subset of the COIL-20 image dataset - three classes to be more precise, rubber-duck, mug, pigbank. It uses Google's pretrained Inception V3 model. To run this, you'll need:

  1. cd into coil-20
  2. mkdir images/inception-images - this is where the pre-processed images for re-training will be kept
  3. ./preprocess.sh - this will pre-process all images under images/training, to a format that the tensorflow inception model accepts
  4. ./train.sh PATH_TO_INCEPTION_V3_MODEL - you'll need to download the Inception V3 model and use the path you saved in place of PATH_TO_INCEPTION_V3_MODEL. You can tune the training parameters (e.g., max iterations) by modifying the train.sh script
  5. After training, run ./eval to see the level of accuracy you achieved

About

A set of examples using tensorflow for machine learning classification

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published