Research Article
Center Loss Guided Prototypical Networks for Unbalance Few-Shot Industrial Fault Diagnosis
Algorithm 2
Prototypical networks [
9].
| | Input: Training set ,. represents the subset of containing all elements | | | Output: The loss J for a randomly generated the training set. | | | | | | for in do | | | . | | | . | | | end for | | | . | | | | | | for in do | | | for in do | | | | | | end for |
|