| Algorithm 2: Sub-task Information Generator. | |
| Input: | a sequence of modified class labels , window size , sliding samples |
| Output: | a sequence of sub-task labels |
| 1: | Begin |
| 2: | initialize i |
| 3: | for to do //for the first modified class labels |
| 4: | while |
| 5: | |
| 6: | |
| 7: | |
| 8: | endwhile |
| 9: | endfor |
| 10: | for to do //for the last modified class labels |
| 11: | |
| 12: | |
| 13: | endfor |
| 14: | End |