You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "zhengruifeng (JIRA)" <ji...@apache.org> on 2019/06/10 09:53:00 UTC

[jira] [Commented] (SPARK-27400) LinearSVC only supports binary classification

    [ https://issues.apache.org/jira/browse/SPARK-27400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16859878#comment-16859878 ] 

zhengruifeng commented on SPARK-27400:
--------------------------------------

According to current design, LinearSVC only support binary classification.

To deal with multi-class cases, you may try one-vs-rest meta alg.

> LinearSVC only supports binary classification
> ---------------------------------------------
>
>                 Key: SPARK-27400
>                 URL: https://issues.apache.org/jira/browse/SPARK-27400
>             Project: Spark
>          Issue Type: Bug
>          Components: ML
>    Affects Versions: 2.4.1
>            Reporter: baris
>            Priority: Major
>
> IllegalArgumentException: u'requirement failed: LinearSVC only supports binary c
> lassification. 99 classes detected in LinearSVC_6596220b55a3__labelCol'



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org