June 2018
Intermediate to advanced
276 pages
6h 26m
English
Optimization and speed are two key factors to building a machine learning model. Theano is a Python package that optimizes implementations and gives you the ability to take advantage of the GPU. To install it, use the following command:
pip install theano

To import all Theano modules, type:
>>> from theano import *
Here, we imported a sub-package called tensor:
>>> import theano.tensor as T
Let's suppose that we want to add two numbers:
>>> from theano import function>>> a = T.dscalar('a')>>> b = T.dscalar('b')>>> c = a + b>>> f = function([a, b], c)
The following are the full steps:
By now, we have acquired the fundamental skills ...
Read now
Unlock full access