Skip to content

Instantly share code, notes, and snippets.

@jdc08161063
jdc08161063 / capsule_networks.py
Created November 12, 2017 00:50 — forked from kendricktan/capsule_networks.py
Clean Code for Capsule Networks
"""
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
@jdc08161063
jdc08161063 / notebook.ipynb
Created July 18, 2017 01:44 — forked from eamartin/notebook.ipynb
Understanding & Visualizing Self-Normalizing Neural Networks
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jdc08161063
jdc08161063 / projection_simplex.py
Created June 13, 2017 06:34 — forked from mblondel/projection_simplex.py
Projection onto the simplex
"""
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