Skip to content
Snippets Groups Projects
Commit e156b5dd authored by Bryan Cutler's avatar Bryan Cutler Committed by Nick Pentreath
Browse files

[SPARK-19953][ML] Random Forest Models use parent UID when being fit

## What changes were proposed in this pull request?

The ML `RandomForestClassificationModel` and `RandomForestRegressionModel` were not using the estimator parent UID when being fit.  This change fixes that so the models can be properly be identified with their parents.

## How was this patch tested?Existing tests.

Added check to verify that model uid matches that of the parent, then renamed `checkCopy` to `checkCopyAndUids` and verified that it was called by one test for each ML algorithm.

Author: Bryan Cutler <cutlerb@gmail.com>

Closes #17296 from BryanCutler/rfmodels-use-parent-uid-SPARK-19953.
parent 5142e5d4
No related branches found
No related tags found
No related merge requests found
Showing
with 38 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