Skip to content
Snippets Groups Projects
Commit 49f5b0ae authored by Zheng RuiFeng's avatar Zheng RuiFeng Committed by Joseph K. Bradley
Browse files

[SPARK-17747][ML] WeightCol support non-double numeric datatypes

## What changes were proposed in this pull request?

1, add test for `WeightCol` in `MLTestingUtils.checkNumericTypes`
2, move datatype cast to `Predict.fit`, and supply algos' `train()` with casted dataframe
## How was this patch tested?

local tests in spark-shell and unit tests

Author: Zheng RuiFeng <ruifengz@foxmail.com>

Closes #15314 from zhengruifeng/weightCol_support_int.
parent e4974721
No related branches found
No related tags found
No related merge requests found
Showing
with 95 additions and 38 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment