Skip to Content
Practical Data Analysis Cookbook
book

Practical Data Analysis Cookbook

by Tomasz Drabas
April 2016
Beginner to intermediate content levelBeginner to intermediate
384 pages
8h 36m
English
Packt Publishing
Content preview from Practical Data Analysis Cookbook

Training a Neural Network to predict the output of a power plant

Neural networks are really powerful regressors, capable of fitting almost any arbitrary data. In this example, however, we will use a simple model to fit the data as we already know our data exerts a linear relationship.

Getting ready

To execute this recipe, you will need pandas and PyBrain. No other prerequisites are required.

How to do it…

We specify the fitANN(...) method in a very similar way as we did in Chapter 3, Classification Techniques (the regression_ann.py file). For brevity, some of the import statements have been removed:

import pybrain.structure as st import pybrain.supervised.trainers as tr import pybrain.tools.shortcuts as pb @hlp.timeit def fitANN(data): ''' Build a ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Python Data Analysis Cookbook

Python Data Analysis Cookbook

Ivan Idris
Practical Simulations for Machine Learning

Practical Simulations for Machine Learning

Paris Buttfield-Addison, Mars Buttfield-Addison, Tim Nugent, Jon Manning

Publisher Resources

ISBN: 9781783551668Supplemental Content