Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Deep Learning with Microsoft Cognitive Toolkit Quick Start Guide

You're reading from   Deep Learning with Microsoft Cognitive Toolkit Quick Start Guide A practical guide to building neural networks using Microsoft's open source deep learning framework

Arrow left icon
Product type Paperback
Published in Mar 2019
Publisher Packt
ISBN-13 9781789802993
Length 208 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Willem Meints Willem Meints
Author Profile Icon Willem Meints
Willem Meints
Arrow right icon
View More author details
Toc

Table of Contents (9) Chapters Close

Preface 1. Getting Started with CNTK 2. Building Neural Networks with CNTK FREE CHAPTER 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 €18.99/month. Cancel anytime