mxnet icon indicating copy to clipboard operation
mxnet copied to clipboard

Loss function of LogisticRegressionOutput

Open marugari opened this issue 10 years ago • 3 comments

It seems that LogisticRegressionOutput has squared loss function (and logit link function). Could you confirm my understanding is correct? https://github.com/dmlc/mxnet/blob/ce92c1074754a5a5fb607d3c59dd119c37cd6aea/src/operator/regression_output.cu#L19

https://github.com/dmlc/mxnet/issues/784#issuecomment-161472054 https://github.com/dmlc/MXNet.jl/issues/67#issuecomment-203815088

marugari avatar Sep 23 '16 04:09 marugari

It seems to be inconsistent with the conventional "logistic regression". The real logistic regression should be the SoftmaxOutput.

pluskid avatar Sep 28 '16 19:09 pluskid

I got it.

However, For binary classification I want to use LogisticRegressionOutput, because it reduce num_hidden to 1. (It decreases number of weights to be estimated?)

marugari avatar Sep 28 '16 23:09 marugari

It has already been discussed. https://github.com/dmlc/mxnet/issues/2001

marugari avatar Oct 01 '16 13:10 marugari