Github user Lewuathe commented on the pull request:
https://github.com/apache/spark/pull/1290#issuecomment-67315423
@bgreeven I think @jkbradley means that it might be better to pass
`Optimizer` itself to train method or set method. For example.
```scala
def train(..., optimizer: Optimizer): ArtificalNeuralNetworkModel = {
optimizer match {
case GradientDescent(...) =>
// Perform SGD
case LBFGS(...) =>
// Perform LBFGS
}
}
```
Users can select any optimizers and configure appropriate parameters.
@jkbradley I'm sorry if it is not what you mean. But this is my proposal
anyway.
---
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]