Can someone point me to the best place to do multinomial logistic regression in Julia? I've tried with https://github.com/lindahua/Regression.jl but I am not getting the right results according to my simulation, I'm not sure how to interpret the output from that package (documentation is rather lacking), and I am not getting any responses on their issues (https://github.com/lindahua/Regression.jl/issues/14).
--
You received this message because you are subscribed to the Google Groups "julia-stats" group.
To unsubscribe from this group and stop receiving emails from it, send an email to julia-stats...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
using ScikitLearn@sk_import linear_model: LogisticRegression
model = fit!(LogisticRegression(multi_class="multinomial"), X_train, y_train)predict(model, X_test)
julia> model = ScikitLearn.fit!(LogisticRegression(multi_class="multinomial"), X, y)ERROR: PyError (:PyObject_Call) <type 'exceptions.ValueError'>ValueError('Solver liblinear does not support a multinomial backend.',) File "/home/benjamin/bin/miniconda/lib/python2.7/site-packages/sklearn/linear_model/logistic.py", line 1148, in fit self.dual, sample_weight) File "/home/benjamin/bin/miniconda/lib/python2.7/site-packages/sklearn/linear_model/logistic.py", line 412, in _check_solver_option "a multinomial backend." % solver)
[inlined code] from /home/benjamin/.julia/v0.4/PyCall/src/exception.jl:81 in pycall at /home/benjamin/.julia/v0.4/PyCall/src/PyCall.jl:344 in call at /home/benjamin/.julia/v0.4/PyCall/src/PyCall.jl:372 in fit! at /home/benjamin/.julia/v0.4/ScikitLearn/src/Skcore.jl:75
Note that not all of the vectors of coefficients are uniquely identifiable. This is due to the fact that all probabilities must sum to 1, making one of them completely determined once all the rest are known. As a result there are only separately specifiable probabilities, and hence separately identifiable vectors of coefficients. One way to see this is to note that if we add a constant vector to all of the coefficient vectors, the equations are identical:
--
You received this message because you are subscribed to a topic in the Google Groups "julia-stats" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/julia-stats/2pHziogT9LI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to julia-stats...@googlegroups.com.