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
Mastering Predictive Analytics with scikit-learn and TensorFlow

You're reading from   Mastering Predictive Analytics with scikit-learn and TensorFlow Implement machine learning techniques to build advanced predictive models using Python

Arrow left icon
Product type Paperback
Published in Sep 2018
Publisher Packt
ISBN-13 9781789617740
Length 154 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Alvaro Fuentes Alvaro Fuentes
Author Profile Icon Alvaro Fuentes
Alvaro Fuentes
Arrow right icon
View More author details
Toc

Regression with Deep Neural Networks (DNN)

For regression with DNNs, we first have to import the libraries we will use here. We will import TensorFlow, pandas, NumPy, and matplotlib with the lines of code shown in the following screenshot:

We will use the fully_ connected function from the tensorflow.contrib.layers model.

Elements of the DNN model

Before running the model, we first have to determine the elements that we will use in building a multilayer perceptron model, shown as follows:

  • Architecture: The model contains 23 elements in the input layer, hence we have 25 features in this dataset. We have only one element in the output layer and we will use three hidden layers, although we could use any number of hidden 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 $19.99/month. Cancel anytime