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 numpy as np | |
import time | |
from sklearn.preprocessing import OneHotEncoder | |
from scipy.io import loadmat | |
from scipy.optimize import minimize | |
def load_data(filename): | |
""" Loads the MNIST data from the given Matlab file name. """ | |
try: |