[CS231n@Stanford] Assignment1-Q3 (python) Softmax实现
softmax.pyimportnumpyasnpfromrandomimportshuffledefsoftmax_loss_naive(W,X,y,reg):"""Softmaxlossfunction,naiveimplementation(withloops)InputshavedimensionD,thereareCclasses,andweoperateonminibatchesofN