Machine Learning with TensorFlow 1.x by Quan Hua
Author:Quan Hua
Language: eng
Format: epub, mobi
Tags: COM021030 - COMPUTERS / Databases / Data Mining, COM018000 - COMPUTERS / Data Processing, COM051360 - COMPUTERS / Programming Languages / Python
Publisher: Packt
Published: 2018-02-26T10:05:34+00:00
In order to simplify the project, we will do the extraction manually using the compression software. After the extraction is completed, the structure of the diabetic folder will look like this:
diabetic train
10_left.jpeg
10_right.jpeg
...
trainLabels.csv
train.zip.001
train.zip.002
train.zip.003
train.zip.004
train.zip.005
trainLabels.csv.zip
In this case, the train folder contains all the images in the .zip files and trainLabels.csv contains the ground truth labels for each image.
The author of the models repository has provided some example code to work with some popular image classification datasets. Our diabetic problem can be solved with the same approach. Therefore, we can follow the code that works with other datasets such as flower or MNIST dataset. We have already provided the modification to work with diabetic in the repository of this book at https://github.com/mlwithtf/mlwithtf/.
You need to clone the repository and navigate to the chapter_08 folder. You can run the download_and_convert_data.py file as follows:
python download_and_convert_data.py --dataset_name diabetic --dataset_dir D:\\datasets\\diabetic
In this case, we will use dataset_name as diabetic and dataset_dir is the folder that contains the trainLabels.csv and train folder.
It should run without any issues, start preprocessing our dataset into a suitable (299x299) format, and create some TFRecord file in a newly created folder named tfrecords. The following figure shows the content of the tfrecords folder:
Download
Machine Learning with TensorFlow 1.x by Quan Hua.mobi
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
The Mikado Method by Ola Ellnestam Daniel Brolund(26291)
Hello! Python by Anthony Briggs(25216)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(24446)
Kotlin in Action by Dmitry Jemerov(23536)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(22880)
Dependency Injection in .NET by Mark Seemann(22667)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(21432)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(20273)
Grails in Action by Glen Smith Peter Ledbrook(19343)
Adobe Camera Raw For Digital Photographers Only by Rob Sheppard(17056)
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(16366)
Secrets of the JavaScript Ninja by John Resig & Bear Bibeault(14077)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(12255)
Jquery UI in Action : Master the concepts Of Jquery UI: A Step By Step Approach by ANMOL GOYAL(11533)
A Developer's Guide to Building Resilient Cloud Applications with Azure by Hamida Rebai Trabelsi(10645)
Hit Refresh by Satya Nadella(9221)
The Kubernetes Operator Framework Book by Michael Dame(8579)
Exploring Deepfakes by Bryan Lyon and Matt Tora(8432)
Robo-Advisor with Python by Aki Ranin(8376)