| Algorithm 1. EM algorithm |
| Procedure EM algorithm returns activation and pose of the capsules in layer l + 1 based on activations and poses of capsules in layer l. is the dimension of the vote from capsule i with activation in layer l to capsule j in layer L + 1. is the hth dimension of the pose from capsule j. is initialized to . |
|
M-STEP for one higher-level capsule , , , E-STEP for one lower-level capsule , , |