diff options
author | Joseph K. Bradley <joseph@databricks.com> | 2016-04-27 16:11:12 -0700 |
---|---|---|
committer | Joseph K. Bradley <joseph@databricks.com> | 2016-04-27 16:11:12 -0700 |
commit | f5ebb18c45ffdee2756a80f64239cb9158df1a11 (patch) | |
tree | d7994c8299067f2118b3d9fedd0b41ea0a1cb438 /assembly | |
parent | 6466d6c8a47273f08451ab5950d31d130c685c7a (diff) | |
download | spark-f5ebb18c45ffdee2756a80f64239cb9158df1a11.tar.gz spark-f5ebb18c45ffdee2756a80f64239cb9158df1a11.tar.bz2 spark-f5ebb18c45ffdee2756a80f64239cb9158df1a11.zip |
[SPARK-14671][ML] Pipeline setStages should handle subclasses of PipelineStage
## What changes were proposed in this pull request?
Pipeline.setStages failed for some code examples which worked in 1.5 but fail in 1.6. This tends to occur when using a mix of transformers from ml.feature. It is because Java Arrays are non-covariant and the addition of MLWritable to some transformers means the stages0/1 arrays above are not of type Array[PipelineStage]. This PR modifies the following to accept subclasses of PipelineStage:
* Pipeline.setStages()
* Params.w()
## How was this patch tested?
Unit test which fails to compile before this fix.
Author: Joseph K. Bradley <joseph@databricks.com>
Closes #12430 from jkbradley/pipeline-setstages.
Diffstat (limited to 'assembly')
0 files changed, 0 insertions, 0 deletions