Hi, in Mahout examples, the (org.apache.mahout.classifier.sgd.)RunLogistic or Trainlogistic class is a great example to classify content with SGD and to get a nice confusion matrix.
I'm trying to use and adapt this to classify data in more than 2 categories. The alorithm uses classify scalar methods, which is only working with 2 categories. "classifyScalar" method in AbstractOnlineLogisticRegression class return a double when we evaluate the model. This double is used as a score fot the matrix. "classify" seems to be equivalent but returns another vector, I guess because the matrix has more than one row in that case. I'm looking for a way to do this with more categories. Do you have a clue or example for doing this i mean --categories 4 is possible instead of --categories 2 in the below command.If not then how to SGD algorithm for multinomial logistic regression in mahout. bin/mahout trainlogistic --input donut.csv \ --output ./model \ --target color --categories 4 \ --predictors x y --types numeric \ --features 20 --passes 100 --rate 50 **************** CAUTION - Disclaimer ***************** This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system. ***INFOSYS******** End of Disclaimer ********INFOSYS***
