• Stars
    star
    389
  • Rank 110,500 (Top 3 %)
  • Language
    Jupyter Notebook
  • Created about 11 years ago
  • Updated over 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Deep Learning and Unsupervised Feature Learning Tutorial Solutions

These are solutions to the exercises up at the Stanford OpenClassroom Deep Learning class and Andrew Ng's UFLDL Tutorial. When I was solving these, I looked around for copies of the solutions so I could compare notes because debugging learning algorithms is often tedious in a way that isn't educational, but almost everything I found was incomplete or obviously wrong. I don't promise that these don't have bugs, but they at least give outputs within the range of the expected outputs for the assignments.

I've attempted to make this Octave compatible, so that you can run this with free software. It seems to work, but the results are slightly different. One side effect of this is that I'm using fminlbfgs instead of minFunc. It ran for me with Octave 3.6.4; my understanding is that Octave 3.8 and newer versions aren't completely backwards compatible, so you may run into problems with the current version of octave. Pull requests welcome, of course.

Here's the order of the exercises:

Stanford OpenClassroom Deep Learning class

  1. linear.m
  2. multiple.m
  3. logistic.m

Unsupervised Feature Learning and Deep Learning Tutorial

  1. Sparse Autoencoder: sparseae_exercise/train.m

  2. Vectorized Implementation: sparseae_exercise/train.m (1 is already vectorized)

3.1. PCA in 2d: pca_2d/pca_2d.m

3.2. PCA: pca_gen/pca_gen.m

  1. Softmax Regression: softmax_exercise/softmaxExercise.m

  2. Self-Taught Learning: stl_exercise/stlExercise.m

  3. Building Deep Networks for Classification: stackedae_exercise/stackedAEExercise.m

  4. Learning Color Features with Sparse Autoencoders: linear_decoder_exercise/linearDecoderExercise.m

  5. Convolution and Pooling: cnn_exercise/cnnExercise.m

More Repositories

1

post-mortems

A collection of postmortems. Sorry for the delay in merging PRs!
10,556
star
2

debugging-stories

A collection of debugging stories. PRs welcome (sorry for the backlog) :-)
3,589
star
3

malloc-tutorial

A quick tutorial on how to implement malloc/free/calloc/realloc
C
150
star
4

setjmp-longjmp-ucontext-snippets

Implementing coroutines, channels, message passing, etc.
C
131
star
5

storrent

Toy scala/akka Bittorrent client. Written while learning scala and now unmaintained
Scala
76
star
6

sega-system-for-fpga

FPGA Sega in Verilog, for Xilinx Virtex, circa 2002. Has an emulator thrown in, to simplify FPGA debugging.
Assembly
68
star
7

Fuzz.jl

World's dumbest fuzzer
Julia
50
star
8

akka-concurrency-wyatt

Worked through Derek Wyatt's Akka Concurrency book
Scala
47
star
9

dump

Experiments and preliminary implementations of things
PostScript
23
star
10

fs-errors

Reproducing resuts from old papers on modern filesystems
Python
22
star
11

julia-cookbook

julialang cookbook
CSS
16
star
12

ninety-nine-scala-problems

Solutions and tests for Phil Gold's S-99: Ninety-Nine Scala Problems
Scala
14
star
13

secvisor-formal-verification

Formal verification of SecVisor, a secure hypervisor
Common Lisp
12
star
14

gnu-pth

Copy of latest source from http://ftp.gnu.org/gnu/pth/
C
10
star
15

ncverilog-error-messages

Explanation of ncverilog error messages. Nothing fancy; just a text file.
9
star
16

danluu-hugo-theme

Basic blog theme, "works for me"-quality. This is only here because someone wanted a copy; I don't suggest that you use it :-)
HTML
8
star
17

neural-nets-101

Just playing around with basic neural net stuff, with a brief sojourn into deep learning via RBMs
MATLAB
6
star
18

madison-hack-and-tell

Madison Hack and Tell presentations
5
star
19

hydra

Fork of Hydra source
Haskell
4
star
20

verilog-dump

Verilog
4
star
21

ocaml-llvm-tutorial

Working through Erick Tryzelaar's LLVM tutorial
OCaml
3
star
22

buzzword-bingo

Buzzword bingo game from 1993
C
2
star
23

bluespec-tutorials

Playing around with some bluespec tutorials
2
star
24

mta-analysis

Protocol Buffer
2
star
25

hello-world

Just working through the tutorial at http://blog.ksplice.com/2010/03/libc-free-world/
C
2
star
26

Xv6

Copy of http://pdos.csail.mit.edu/6.828/2012/xv6.html
C
2
star
27

thompson-haskell

Exercises from Thompson's "Haskell: The Craft of Functional Programming"
Haskell
2
star
28

dineroIV

Repo for some experiments using dineroIV
C
2
star
29

csv

Testing CSV implementations
Python
1
star
30

Project-Euler

Learning F# and bluespec via Project Euler
F#
1
star
31

julia-metaprogramming

1
star
32

config

.emacs, and perhaps some other things
Emacs Lisp
1
star
33

isotropic

Client/server code from an early version of isotropic
Python
1
star
34

notes

1
star
35

n2t

nand2tetris, verilog
Verilog
1
star
36

rust-experiments

Learning rust
Rust
1
star
37

latency

An abandoned experiment
Python
1
star
38

kodkod-clj

Messing around with a SAT solver in clojure
Clojure
1
star