Docsity

Neural Networks: Understanding the Basics of this Modern Information Processing System, Study notes of Advanced Physics

Toggle sidebar
bg1
Neural
Networks
A relatively new type of information processing
which has only seen limited used in chemistry.
Originally developed as a way to mimic the human
brain, this research area now includes a range of
parallel distributed processing methods.
Neural networks
Potential advantages of the approach
!Ability to learn new things with existing net.
!Can automatically adjust to new stimuli.
!Exact rules are not required.
!Adding ‘poor’ data degrades net slowly.
!
Current disadvantages
!Not many applications in chemistry to date.
!Only useful for classification - so far.
!Typically slow to develop and train
Neural networks
We will only be introducing some general
concepts in this unit.
!Network component
!Network topography
!General training approaches
!Some example network types
Hopefully, this will give you at least a basic
understanding of the area.
Network nodes
A network consists of a series of nodes.
wnm
wnm
om
om
wnm
wnm
om
om
wnm
wnm
om
om
f(! i w)
f(! i w) On
On
M
M
Node example
Node example
input from
previous layer
input from
previous layer
site functions
and weights
site functions
and weights activation
function
activation
function
output
functions
output
functions
On
On
On
On
bias
bias
Network nodes
Logistic activation function
This is one of the most common activation
function types.
Function output
will result in a
simple on/off
condition.
0
1
aj(t+1) =1+e-(wij oi(t)
i
!-ij)
1
pf3
pf4
pf5
pf8

Partial preview of the text

Download Neural Networks: Understanding the Basics of this Modern Information Processing System and more Study notes Advanced Physics in PDF only on Docsity!

Neural

Networks

A relatively new type of information processing which has only seen limited used in chemistry. Originally developed as a way to mimic the human brain, this research area now includes a range of parallel distributed processing methods.

Neural networks

Potential advantages of the approach

! Ability to learn new things with existing net.

! Can automatically adjust to new stimuli.

! Exact rules are not required.

! Adding ‘poor’ data degrades net slowly.

!

Current disadvantages

! Not many applications in chemistry to date.

! Only useful for classification - so far.

! Typically slow to develop and train

Neural networks

We will only be introducing some general

concepts in this unit.

! Network component

! Network topography

! General training approaches

! Some example network types

Hopefully, this will give you at least a basic

understanding of the area.

Network nodes

A network consists of a series of nodes.

o^ omm^ wwnmnm o^ omm^ w wnmnm oomm w wnmnm

f( f(!! ii w)w) OOnn

M M

Node Node exampleexample

input from previous layer input from previous layer site functions and weights site functions and weights (^) activation function activation function output functions output functions O Onn O Onn bias bias

Network nodes

Depending on the network and node type, not all types of functions may be used. om output from previous unit w weight applied to om bias additional weight applied to select inputs or layers. Responses are then fed to an activation function.

Logistic activation function

This is one of the most common activation

function types.

Function output will result in a simple on/off condition. 0 1

a j ( t + 1) =

1 + e

  • ( (^)! i w (^) ij oi ( t )- i (^) j )

Activation functions

Other types of functions have been used but for

our limited coverage, one example is enough.

Object of the function is to sum the responses

from the previous units to which it is linked and

produce an output response - usually on (1) or

off (0)

This output is then sent to to other nodes.

Types of nodes Input Information obtained from external source. Output Information sent to external source. Dual Combination input and output node. Hidden Node in an internal layer. No external interaction. A simple network

External

inputs

Network

output

input

layer

hidden

layer

output

layer

Learning in neural networks (^) The goal is to present the network with a range of input patterns and obtain the desired output. One of the most common approaches for training a network is backpropagation of a feed- forward neural network. Let’s review the basic steps in this approach. Neural network training forward propagation phase back- propagation phase This process is repeated for each pattern in the training set - in series. The entire set is evaluated repeatedly until the net is trained to a satisfactory level. Present pattern Measure response of output layer Calculate difference between output layer and training value Adjust weights to obtain desired output Neural network training As with other classification methods, you can use a separate training and evaluation set or cross- validation. It is assumed that the patterns presented contain information that can be used for classification. Other methods of data evaluation can be used prior to training to insure that a ‘good’ net can be produced.

Arson example Files used for design of the network, data and classes Arson example Output layer Hidden layer Input layer The .cf file is used to specify a three layer network. Dendrograms Shows if the data tends to fall into clusters and be classified. PCA plots It’s pretty much the same as what we observed when the Arson data file was used earlier. 3D PCA plots (^) Arson example The program was then instructed to go through 50,000 training cycles.

Arson example Arson example The activity display will indicate which inputs cause each node to ‘fire’ and it’s impact on the final pattern. Arson example Finally, we can evaluate how well our network works. Here we just used the original training set to see how well each sample is classified. JavaNNS example

Let’s return to the Iris problem and see if a neural

network can do the classification.

To make the software happy, the data was normalized

on a 0-1 scale -- variable by variable basis.

Classes were assigned as:

0 0 I. Setosa

0 1 I.Verginica

1 0 I.Verginica

Initial

network

with

random

weights.

Setting options

DLVQ steps

  • The normalized training set is loaded and the

mean vector for each class determined.

  • Each pattern out of the training set is evaluated

with the reference vector.

  • Vectors are adjusted towards samples in a class

and away from other samples.

  • The process is completed until the number of

correctly classified samples does not increase.

DLVQ Once completed, the final class vectors may vary in size. Some classes may be easier to identify than others. 1 7 6 5 4 2 3 8 14 13 12 11 9 10 15 21 20 19 18 16 17 22 28 27 26 25 23 24 29 35 34 33 32 30 31 36 42 41 40 39 37 38 DLVQ

In order to work, the input patterns for each

class share some similarities.

There must also be something ‘different’ about

each class.

The model must be rebuilt if a new class is

discovered or a training sample was misidentified.

Self-organizing maps

Self-organizing maps (SOM) are also

called Kohonen feature maps.

This is an unsupervised learning

method.

It will cluster related input data.

It will maintain spacial ordering so you

have some idea as to the relationships

between your patterns.

Self-organizing maps

SOM systems consist of two layers of units.

A one dimensional input layer

A two dimensional competitive layer

organized as a 2-D grid of units.

There are no hidden or output layers.

input layer competitive layer Self-organizing maps

Training

The competitive layer is initialized with normalized

vectors.

The input pattern vectors are presented to the

competitive layer and the best match (nearest unit) is

chosen as the winner.

Topicalogical ordering is achieved using a spatial

neighborhood relationship between competitive units.

Self-organizing maps

Once trained, each sample will produce a ‘pattern

map’ on the competitive layer.

It can be used to visualize how your samples

relate to each other.