This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| Dynamic Routing Between Capsules | |
| https://arxiv.org/abs/1710.09829 | |
| """ | |
| import torch | |
| import torch.nn as nn | |
| import torch.optim as optim | |
| import torch.nn.functional as F | |
| import torchvision.transforms as transforms |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| Implements three algorithms for projecting a vector onto the simplex: sort, pivot and bisection. | |
| For details and references, see the following paper: | |
| Large-scale Multiclass Support Vector Machine Training via Euclidean Projection onto the Simplex | |
| Mathieu Blondel, Akinori Fujino, and Naonori Ueda. | |
| ICPR 2014. | |
| http://www.mblondel.org/publications/mblondel-icpr2014.pdf |