[jira] [Commented] (SPARK-5805) Fix the type error in the final example given in MLlib - Clustering documentation
[ https://issues.apache.org/jira/browse/SPARK-5805?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14321422#comment-14321422 ] Apache Spark commented on SPARK-5805: - User 'emres' has created a pull request for this issue: https://github.com/apache/spark/pull/4605 Fix the type error in the final example given in MLlib - Clustering documentation - Key: SPARK-5805 URL: https://issues.apache.org/jira/browse/SPARK-5805 Project: Spark Issue Type: Documentation Components: Documentation, MLlib Affects Versions: 1.2.0, 1.2.1 Reporter: Emre Sevinç Assignee: Emre Sevinç Priority: Minor Labels: documentation, easyfix, newbie Fix For: 1.3.0 Original Estimate: 1h Remaining Estimate: 1h The final example in [MLlib - Clustering|http://spark.apache.org/docs/1.2.0/mllib-clustering.html] documentation has a code line that leads to a type error. The problematic line reads as: {code} model.predictOnValues(testData).print() {code} but it should be {code} model.predictOnValues(testData.map(lp = (lp.label, lp.features))).print() {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org
[jira] [Commented] (SPARK-5805) Fix the type error in the final example given in MLlib - Clustering documentation
[ https://issues.apache.org/jira/browse/SPARK-5805?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14320680#comment-14320680 ] Apache Spark commented on SPARK-5805: - User 'emres' has created a pull request for this issue: https://github.com/apache/spark/pull/4596 Fix the type error in the final example given in MLlib - Clustering documentation - Key: SPARK-5805 URL: https://issues.apache.org/jira/browse/SPARK-5805 Project: Spark Issue Type: Documentation Components: Documentation, MLlib Affects Versions: 1.2.0, 1.2.1 Reporter: Emre Sevinç Priority: Minor Labels: documentation, easyfix, newbie Original Estimate: 1h Remaining Estimate: 1h The final example in [MLlib - Clustering|http://spark.apache.org/docs/1.2.0/mllib-clustering.html] documentation has a code line that leads to a type error. The problematic line reads as: {code} model.predictOnValues(testData).print() {code} but it should be {code} model.predictOnValues(testData.map(lp = (lp.label, lp.features))).print() {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org