Skip to content

Instantly share code, notes, and snippets.

Mihai Campean andr0idsensei

Block or report user

Report or block andr0idsensei

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@andr0idsensei
andr0idsensei / unvectorized_nnet.py
Last active Nov 13, 2018
Vectorized neural network implementation for the Coursera ML course by Andrew Ng, based on the Python implementation written by John Wittenauer here http://www.johnwittenauer.net/machine-learning-exercises-in-python-part-5/ The un-vectorized version is also available for comparison.
View unvectorized_nnet.py
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:
You can’t perform that action at this time.