Github user petro-rudenko commented on the pull request:
https://github.com/apache/spark/pull/3637#issuecomment-71636977
Also would be nice to be able to get/set model state:
```scala
// Run cross-validation, and choose the best set of parameters.
val cvModel = crossval.fit(training)
val modelState = cvModel.bestModel.getModelState
// Map(weights-> Vector(0.2, 0.3, 0.5,...), regParam -> 0.1, ...)
//Save this state, pass to other prediction frontend, etc.
val lr = new LogisticRegression()
val lrModel = lr.setModelState(modelState)
//LogisticRegressionModel
lrModel.transform(...).predict(...)
```
---
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]