keras用得比较多,但是有时keras用起来不是很顺手。因为keras是基于theano或TensorFlow的,所以趁假期有空,先看看theano。
Classifying MNIST digits using Logistic Regression
官方文档:http://deeplearning.net/tutorial/logreg.html
一. 任务描述
用Logistic Regression回归做手写体数字识别,用theano实现。
二. 问题建模
Logistic Regression是一个线性的分类器,该模型包含权值矩阵 W 和偏移向量
P(Y=i|x,W,b)=softmaxi(Wx+b)=eWix