Github user BryanCutler commented on a diff in the pull request:
https://github.com/apache/spark/pull/6300#discussion_r30990339
--- Diff:
mllib/src/main/scala/org/apache/spark/ml/classification/RandomForestClassifier.scala
---
@@ -134,13 +135,23 @@ final class RandomForestClassificationModel
private[ml] (
override def treeWeights: Array[Double] = _treeWeights
+ override def transform(dataset: DataFrame): DataFrame = {
+ val bcastModel = dataset.sqlContext.sparkContext.broadcast(this)
--- End diff --
You mentioned that we might want to selectively broadcast the model, only
if it's large enough. Do you think that is something we can do here
automatically, or would it need to be a configuration setting?
---
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]