Research Article
Recall Network: A Simple Brain-Inspired Algorithm for Classification
Algorithm 2
Teaching the recall network with the training dataset.
| input: training data | | output: the network weighted by all training examples | | Training the Recall Network; | | for i ⟵ 1 to the number of examples do | | classIndex = the class index of the ith example | | for j ⟵ 1 to the Number of attribute−1 do; | | RowNoj = the row number of the value in jth layer; | | RowNoj+1 = the row number the value in (j + 1)th layer; | | e = the edge between the Node (j, RowNoj) and Node (j, RowNoj+1); | | e.ClassVector[ClassIndex] + 1 | | end | | end |
|