import deeplearning.net tutorial code
use flickr dataset in logistic regression
reformat and do not sample image as we deal with bag of word