diff options
author | Yanbo Liang <ybliang8@gmail.com> | 2016-08-05 22:07:59 +0100 |
---|---|---|
committer | Sean Owen <sowen@cloudera.com> | 2016-08-05 22:07:59 +0100 |
commit | 6cbde337a539e5bb170d0eb81f715a95ee9c9af3 (patch) | |
tree | bb169670d130594c9130a2c1b600b2975301e664 /.travis.yml | |
parent | 1f96c97f2374a95140a0c72b1f4eae50ac21d84a (diff) | |
download | spark-6cbde337a539e5bb170d0eb81f715a95ee9c9af3.tar.gz spark-6cbde337a539e5bb170d0eb81f715a95ee9c9af3.tar.bz2 spark-6cbde337a539e5bb170d0eb81f715a95ee9c9af3.zip |
[SPARK-16750][FOLLOW-UP][ML] Add transformSchema for StringIndexer/VectorAssembler and fix failed tests.
## What changes were proposed in this pull request?
This is follow-up for #14378. When we add ```transformSchema``` for all estimators and transformers, I found there are tests failed for ```StringIndexer``` and ```VectorAssembler```. So I moved these parts of work separately in this PR, to make it more clear to review.
The corresponding tests should throw ```IllegalArgumentException``` at schema validation period after we add ```transformSchema```. It's efficient that to throw exception at the start of ```fit``` or ```transform``` rather than during the process.
## How was this patch tested?
Modified unit tests.
Author: Yanbo Liang <ybliang8@gmail.com>
Closes #14455 from yanboliang/transformSchema.
Diffstat (limited to '.travis.yml')
0 files changed, 0 insertions, 0 deletions