Research Article
Improved Double-Layer Structure Multilabel Classification Model via Optimal Sequence and Attention Mechanism
| | Constructing the minimum spanning tree of labels based on Algorithm 1: | | | Input: G (V, E) | | | Output: MWT | | (1) | MWT {} | | (2) | For G, then V is: | | (3) | Make the set () | | (4) | For (u, ) in G. E is ordered according to weight (u, ) via an increasing way: | | (5) | If set(u) set(): | | (6) | MST = MST {(u, )} | | (7) | Let it Union (u, ) | | (8) | Return MWT MST |
|