|
Algorithm A1: MGANet for sleep staging |
| Input: An information network:
|
| Output: Node vector fusion information representations
|
| Initialization: , training epochs I and labeled nodes
|
| While do |
| for a vertex do |
| //Learn sleep vector for each spatial feature. |
| //Learn attention spatial feature representation. |
| //Learn the sleep vector for each temporal feature by Equation (8). |
| //Learn attention temporal feature representation. |
| end |
| //Calculate attention coefficient. |
| //sleep stage probability distribution. |
| //epoch features and transitional fusion information. |
|
|
| end |