Skip to content

Instantly share code, notes, and snippets.

View suraj-deshmukh's full-sized avatar
🏠
Working from home

Suraj Deshmukh suraj-deshmukh

🏠
Working from home
View GitHub Profile
@mathDR
mathDR / mnist_cnn_incremental.py
Created April 14, 2016 02:55
Incremental learning of mnist dataset (following T.Xiao et.al. "Error-Driven Incremental Learning in Deep Convolutional Neural Network for Large-Scale Image Classification"
'''Trains a simple convnet on the MNIST dataset.
Does flat increment from T. Xiao "Error-Driven Incremental Learning in Deep Convolutional
Neural Network for Large-Scale Image Classification"
Starts with just 3 classes, trains for 12 epochs then
incrementally trains the rest of the classes by reusing
the trained weights.
'''
from __future__ import print_function
import numpy as np