Search icon CANCEL
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Deep Learning with Microsoft Cognitive Toolkit Quick Start Guide

You're reading from  Deep Learning with Microsoft Cognitive Toolkit Quick Start Guide

Product type Book
Published in Mar 2019
Publisher Packt
ISBN-13 9781789802993
Pages 208 pages
Edition 1st Edition
Languages
Author (1):
Willem Meints Willem Meints
Profile icon Willem Meints

Table of Contents (9) Chapters

Preface 1. Getting Started with CNTK 2. Building Neural Networks with CNTK 3. Getting Data into Your Neural Network 4. Validating Model Performance 5. Working with Images 6. Working with Time Series Data 7. Deploying Models to Production 8. Other Books You May Enjoy

Taking control over the minibatch loop

In the previous section, we've seen how to use the CTF format with MinibatchSource to feed data to the CNTK trainer. But most datasets don't come in this format. So, you can't really use this format unless you create your own dataset or convert the original dataset to the CTF format.

CNTK currently supports a limited set of deserializers for images, text, and speech. You can't extend the deserializers at the moment, which limits what you can do with the standard MinibatchSource. You can create your own UserMinibatchSource, but this is a complicated process. So, instead of showing you how to build a custom MinibatchSource, let's look at how to feed data into the CNTK trainer manually.

Let's first recreate the model we used to classify Iris flowers:

from cntk import default_options, input_variable
from cntk.layers...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}