This file contains 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
from __future__ import absolute_import | |
from __future__ import print_function | |
import numpy as np | |
np.random.seed(1337) # for reproducibility | |
import random | |
from keras.datasets import mnist | |
from keras.models import Sequential | |
from keras.layers.core import * | |
from keras.optimizers import SGD, RMSprop |
This file contains 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
import cv2 | |
import numpy as np | |
def cart2pol(x, y): | |
theta = np.arctan2(y, x) | |
rho = np.hypot(x, y) | |
return theta, rho | |