Add category_field to AD command in PPL#952
Conversation
Signed-off-by: Joshua Li <joshuali925@gmail.com>
Signed-off-by: Joshua Li <joshuali925@gmail.com>
Signed-off-by: Joshua Li <joshuali925@gmail.com>
Signed-off-by: Joshua Li <joshuali925@gmail.com>
Signed-off-by: Joshua Li <joshuali925@gmail.com>
Signed-off-by: Joshua Li <joshuali925@gmail.com>
3ccd62a to
50d8d2d
Compare
| super.open(); | ||
| DataFrame inputDataFrame = generateInputDataset(input); | ||
| String categoryField = arguments.containsKey(CATEGORY_FIELD) | ||
| ? (String) arguments.get(CATEGORY_FIELD).getValue() : null; |
There was a problem hiding this comment.
what do you suggest? i thought about optional but code style said to not use Optional as function parameters, and other arguments defaults to null
Agree, this is the temporary solution, please add the issue to track AD change in future release. |

Description
Add
category_fieldtoADcommand. PPL will group inputs by category, and each group will be sent to AD for predictions separately. This is a temporary solution before ml-commons supports 2 dimensional data.Enabled doctest for AD (which was disabled by #575)
Issues Resolved
[List any issues this PR will resolve]
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.