| Algorithm 1: Learning the best threshold level in the first learning hierarchy level. |
|
1. Input: Initialize time step (n), α, γ,, Threshold, and matrices. Make as the accurate threshold matrix based on the transition states. |
| 2. While not converged, do |
| 1. Generate two binary random values as |
| 2. Determine the accurate threshold, Th, based on |
| 3. With probability ɛ, randomly choose a value for the threshold from levels. |
| 4. Otherwise, |
| 5. If ) |
| 6. else |
| 7. End |
| 8. Update the matrix |
| 9. |
| 10. Increase the time step n by 1 |
| 3. End while |