Github user Stibbons commented on a diff in the pull request:
https://github.com/apache/spark/pull/14830#discussion_r101262948
--- Diff:
examples/src/main/python/ml/decision_tree_classification_example.py ---
@@ -65,8 +67,9 @@
predictions.select("prediction", "indexedLabel", "features").show(5)
# Select (prediction, true label) and compute test error
- evaluator = MulticlassClassificationEvaluator(
- labelCol="indexedLabel", predictionCol="prediction",
metricName="accuracy")
--- End diff --
`pep8` tool can automatically do this return if line is > 100 char. There
is indeed no preference between this format and:
evaluator = MulticlassClassificationEvaluator(labelCol="indexedLabel",
predictionCol="prediction",
metricName="accuracy")
---
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 [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]