Docsity

Data Mining - Classification by Backpropagation, Study notes of Data Mining

Toggle sidebar
bg1
November 24, 2014 Data Mining: Concepts and
Techniques 1
Classification by
Backpropagation
•Backpropagation: A neural network learning algorithm
•Started by psychologists and neurobiologists to develop and
test computational analogues of neurons
•A neural network: A set of connected input/output units
where each connection has a weight associated with it
•During the learning phase, the network learns by
adjusting the weights so as to be able to predict the
correct class label of the input tuples
•Also referred to as connectionist learning due to the
connections between units
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Data Mining - Classification by Backpropagation and more Study notes Data Mining in PDF only on Docsity!

• Backpropagation:^ Backpropagation^ Classification by A neural network learning algorithm

  • • (^) Started by psychologists and neurobiologists to develop and test computational analogues of neuronsA where each connection has a neural network: A set of weight connected associated with it input/output units
  • • (^) During adjusting correct class label of the input tuplesAlso referred the the learningto weights as connectionist phase, so as the to (^) be networklearning able to (^) (^) due learns predict to (^) thethe by connections between units

• Weakness – Long training time^ Neural Network as a^ Classifier

  • – (^) Require a number of parameters typically best determined empirically, e.g., the network topology or structure."Poor interpretability: Difficult to interpret the symbolic meaning behind the learned weights and ofhidden units" in the network
  • (^) Strength – – – (^) High tolerance to noisy dataAbility to classify untrained patternsWell-suited for continuous-valued inputs and outputs
  • – – (^) Successful on a wide array of real-world dataAlgorithms are inherently parallelTechniques have recently been developed for the extraction of rules from trained neural networks

A Multi-Layer Feed-Forward Neural Network Output layer Hidden layerInput layer

Output vector

Input vector: X

Err wij (^) jIOj Oj (^) j (  (^1)  i  (^1) wOijOj (^1) e )( iTIjj  jOj )

Err (^) jw   ij Oj   jw (  (^1) ijj  O (( llj ))) ErrErr k ErrjO j ikw jk

Ij  (^)  i wijOi   j

Err j  Oj ( 1^ O ^ jO^  j^ )(^1  T^1 j^ e  I^ jOj )

Given a unit j in a hidden or uotput layer, the net input IGiven Where unit the unit which acts as a threshold in that it serves to vary the activity of the unit. j the net input I; Owi ij is the output of unit is the weight of the connection from unit i from the previous layer ; and i j, to unit j isin the previous layer to θj is the bias of For a unit j in the output layer, the error Err Where O target value of the given training tuplej is the actual output of unit j, and Tj^ to unit j , then Oj^ , the output of unit j, is computed asj is computed byj is the known Where w^ to unit j in the next layer are considered. The error^ weighted sum of the errors of the units connected to a unit k in the next higher layer, and Err^ To compute the error of a hidden layer unit j, thejk is the weight of the connection from unit j^ of a hidden layer unit j is error of unit k. k is the Err^ j^ ^ Oj (^1  Oj )^ k^ Errkw^ jk Weights are updated as follows Where l is the learning rate. Biases are updated as follows. Where l is the learning. wij^   jwij  j ( l () lErr ) ErrjO j i

  • (^) First decide the input layer^ Defining a Network Topology, # of network topology: hidden layers (if > 1), # of units in # of units in the
  • •^ each hidden layer Normalizing measured in the training tuples to [0.0—1.0]One input unit per domain value, each initialized to 0 the , and # of units in theinput values for each^ output layer attribute
  • • (^) Output classes, one output unit per class is usedOnce a network has been trained and its accuracy is unacceptable , if for, repeatclassification the training and moreprocess than with two a

different network topology weights or a different set of initial

  • (^) Iteratively network's prediction with the actual known target value process^ Backpropagation a set of training tuples & compare the
  • • (^) For each training tuple, the weights are modified to the mean squared error the actual target valueModifications are made in the “ between the network's prediction and backwards ” direction: from the minimize
  • output layer, through each hidden layer down to the first hidden^ layer, hence “ Steps – (^) Initialize weights backpropagation (to small random” #s) and biases in the
    • – – networkPropagate the inputs forward (by applying activation function)Backpropagate the error (by updating weights and biases)Terminating condition (when error is very small, etc.)
  • (^) Fig Shows A multilayer feed-forward Neural Network. Let^ Sample Calculation for learning by the^ backpropagation Algorithm the learning rate be 0.9. The initial weight and bias values of the N/W training tuple, 1 are given in Table 1.1 along with the first X= ( 1, 0 ,1) whose class label is 1. 2 4 3 5 6

x (^1) W w (^1524) x 2 x 3

w 14 w 56

w 46 w^ w (^3425) w 35

Unit j 45 Net input I0.2 + 0 – 0.5 – 0.4 = -0.7-0.3 + 0 + 0.2 + 0.2 = 0.1j 1/ (1+e 0.3321/ (1+eOutput O0.70.1) =) =j

6 (-0.3)(0.332)-(0.2)(0.525) + 0.1 = -0.105^ 0.525 1/ (1+e 0.474 0.105) =

The net input and output calculations^ Initial input, weight, and bias values

Unit j 65 (0.474)(1-0.474)(1-0.474) = 0.1311(0.525)(1-0.525)(0.1311)(-0.2) = -0.0065Errj

Calculations of the error at each node.