Github user mengxr commented on a diff in the pull request: https://github.com/apache/spark/pull/653#discussion_r12311457 --- Diff: mllib/data/sample_naive_bayes_data.txt --- @@ -1,6 +1,6 @@ -0, 1 0 0 -0, 2 0 0 -1, 0 1 0 -1, 0 2 0 -2, 0 0 1 -2, 0 0 2 +0,1 0 0 --- End diff -- Replacing `,` by ` ` in `lpsa.data`. Just try to be consistent with LIBSVM format, which label and features are separated by ` ` instead of `,`. Comma can be used as label delimiter, for multi-label classification, where an example may have multiple labels. For LIBSVM, this is ~~~ 1,2 1:1.0 3:4.0 ~~~ For dense data, we can use ~~~ 1,2 1.0 0.0 4.0 ~~~
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---