Extract Params from metadata, and set them in the instance.
Extract Params from metadata, and set them in the instance. This works if all Params implement org.apache.spark.ml.param.Param.jsonDecode(). TODO: Move to Metadata method
Helper for OpPipelineStageWriter which extracts the JSON to save.
Helper for OpPipelineStageWriter which extracts the JSON to save. This is useful for ensemble models which need to save metadata for many sub-models.
Note: this method was taken from DefaultParamsWriter.getMetadataToSave,
but modified to avoid requiring Spark session instead use org.apache.spark.SPARK_VERSION
OpPipelineStageWriter for details on what this includes.
Parse metadata JSON string produced by DefaultParamsWriter.getMetadataToSave().
Parse metadata JSON string produced by DefaultParamsWriter.getMetadataToSave(). This is a helper function for loadMetadata().
IllegalArgumentException
if expectedClassName is specified and does not match metadata
Direct wrappers for ml private DefaultParamsWriter and DefaultParamsReader needed to read/write Spark stages in OP