ANN – Bidirectional Associative Memory (BAM) Learning Algorithm
Prerequisite: ANN | Bidirectional Associative Memory (BAM)
There are three main steps to construct the BAM model.
Attention reader! Don’t stop learning now. Get hold of all the important Machine Learning Concepts with the Machine Learning Foundation Course at a student-friendly price and become industry ready.
Each step has been described with mathematical formulation in the article ANN | Bidirectional Associative Memory (BAM).
Here, this learning algorithm is explained iteratively with an example.
Set A: Input Patterns
Set B: Corresponding Target Patterns
Step 1: Here, the value of M (no of pairs of patterns) is 4.
Step 2: Assign the neurons in the input and output layer. Here, neurons in the input layer are 6 and the output layer are 3
Step 3: Now, compute the Weight Matrix (W):
Step 4: Test the BAM model learning algorithm- for the input patterns BAM will return the corresponding target patterns as output. And for each of the target patterns, BAM will return the corresponding input patterns.
- Test on input patterns (Set A) using-
- Test on target patterns (Set B) using-
Here, for each of the input patterns, the BAM model will give correct target patterns and for target patterns, the model will also give corresponding input patterns.
This signifies the bidirectional association in memory or model network.