CS231n Putting it together: Minimal Neural Network Case Study —— nn with softmax loss
加一层非线性,相比于单纯的softmax,效果立马就好了啊。importnumpyasnpimportmatplotlib.pyplotaspltN=100;D=2;K=3;X=np.zeros((N*K,D))y=np.zeros(N*K,dtype='uint8')forjinxrange(K):ix=range(N*j,N*(j+1));r=np.linspace(0,1,N);#t=np.