The structure of an ANN

Here's a visual representation of a neural network:

The structure of an ANN

As you can see from the figure, there are three distinct layers in a neural network: Input layer, Hidden layer (or middle), and Output layer.

There can be more than one hidden layer; however, one hidden layer would be enough to resolve the majority of real-life problems.

Network layers by example

How do we determine the network's topology, and how many neurons to create for each layer? Let's make this determination layer by layer.

The input layer

The input layer defines the number of inputs into the network. For example, let's say you want to create an ANN, which will help you ...

Get Learning OpenCV 3 Computer Vision with Python - Second Edition 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.