Github user holdenk commented on a diff in the pull request: https://github.com/apache/spark/pull/6386#discussion_r30955132 --- Diff: mllib/src/main/scala/org/apache/spark/ml/classification/LogisticRegression.scala --- @@ -106,6 +106,11 @@ class LogisticRegression(override val uid: String) case LabeledPoint(label: Double, features: Vector) => (label, features) } val handlePersistence = dataset.rdd.getStorageLevel == StorageLevel.NONE + trainOnInstances(instances, handlePersistence) + } + + protected[spark] def trainOnInstances(instances: RDD[(Double, Vector)], --- End diff -- That an option, I figured it would be better to not round trip it through a `DataFrame` since we would have to create a `SQLContext` and the `ml` implementation just rips out the `LabeledPoint`s from the DataFrame as soon as its passed in - but I can do it this way if that would be better :)
--- 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. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org