[
https://issues.apache.org/jira/browse/SPARK-21221?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ajay Saini updated SPARK-21221:
-------------------------------
Comment: was deleted
(was: Note: In order for python persistence of OneVsRest inside a
CrossValidator/TrainValidationSplit to work this change needs to be merged
because Python persistence of meta-algorithms relies on the Scala saving
implementation.)
> CrossValidator and TrainValidationSplit Persist Nested Estimators such as
> OneVsRest
> -----------------------------------------------------------------------------------
>
> Key: SPARK-21221
> URL: https://issues.apache.org/jira/browse/SPARK-21221
> Project: Spark
> Issue Type: New Feature
> Components: ML
> Affects Versions: 2.2.0
> Reporter: Ajay Saini
> Assignee: Ajay Saini
>
> Currently, the saving of parameters done in ValidatorParams.scala assumes
> that all parameters in EstimatorParameterMaps are JSON serializable. Such an
> assumption causes CrossValidator and TrainValidationSplit persistence to fail
> when the internal estimator to these meta-algorithms is not JSON
> serializable. One example is OneVsRest which has a classifier (estimator) as
> a parameter.
> The changes would involve removing the assumption in validator params that
> all the estimator params are JSON serializable. This could mean saving
> parameters that are not JSON serializable separately at a specified path.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]