Working with numpy arrays

The first library we'll explore is numpy. Numpy is the most basic library available in Python for performing mathematical operations on n-dimensional arrays. It features an efficient way to store matrices and vectors in computer memory. The numpy library defines a large number of operators to manipulate these n-dimensional arrays. For example, it has built-in functions to calculate the average value over a whole matrix or rows/columns in a matrix.

You can follow along with any of the code in this section by opening the Training using numpy arrays.ipynb notebook in your browser using the instructions described at the start of this chapter.

Let's take a look at how to work with a numpy-based dataset in CNTK. As an ...

Get Deep Learning with Microsoft Cognitive Toolkit Quick Start Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.