Hi,

When going through the MLlib doc for classification:
http://spark.apache.org/docs/latest/mllib-linear-methods.html, I find that
the loss functions are based on label {1, -1}.

But in MLlib, the loss functions on label {1, 0} are used. And there is a
dataValidation check before fitting, if a label is other than 0 or 1, an
exception will be thrown.

I don't understand the intention here. Could someone explain this ?

Hao.




--
View this message in context: 
http://apache-spark-user-list.1001560.n3.nabble.com/MLlib-classification-label-problem-tp20813.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@spark.apache.org
For additional commands, e-mail: user-h...@spark.apache.org

Reply via email to