This is an automated email from the ASF dual-hosted git repository. github-merge-queue[bot] pushed a commit to branch gh-readonly-queue/main/pr-7973-f34905e4325fcaeb515c623e75223c2e943ad3f6 in repository https://gitbox.apache.org/repos/asf/texera.git
commit ce121330fa0d781258b85e3de7f8512b56e47a21 Author: Martin Vu <[email protected]> AuthorDate: Thu Sep 3 01:32:21 2026 +0000 fix(sklearn): rename SVR shrinking parameter (#7973) ### What changes were proposed in this PR? Renamed the `probability` parameter to `shrinking` in `SklearnAdvancedSVRParameters`. The generated Python parameter was already correctly set to `shrinking`; only the displayed parameter name was incorrect. Before: <img width="1023" height="630" alt="Screenshot 2026-08-25 at 1 12 24 AM" src="https://github.com/user-attachments/assets/6160a364-9ff9-42fb-8f60-b43cf7019dce" /> After: <img width="1023" height="630" alt="Screenshot 2026-08-25 at 1 35 53 AM" src="https://github.com/user-attachments/assets/578d14a3-1572-4dd9-ab92-0a63d78375c3" /> **Note:** This renames the enum constant from `probability` to `shrinking`. Existing workflows saved with `probability` will need to be updated. ### Any related issues, documentation, discussions? Fixes #7949 ### How was this PR tested? Tested the Advanced SVM Regressor Trainer with `shrinking = true` and verified that the resulting parameters show `shrinking = True`. ### Was this PR authored or co-authored using generative AI tooling? Generated-by: ChatGPT (5.5 GPT) --- .../sklearnAdvanced/SVRTrainer/SklearnAdvancedSVRParameters.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/workflow-operator/src/main/scala/org/apache/texera/amber/operator/machineLearning/sklearnAdvanced/SVRTrainer/SklearnAdvancedSVRParameters.java b/common/workflow-operator/src/main/scala/org/apache/texera/amber/operator/machineLearning/sklearnAdvanced/SVRTrainer/SklearnAdvancedSVRParameters.java index 898db274dc..110b0f4a68 100644 --- a/common/workflow-operator/src/main/scala/org/apache/texera/amber/operator/machineLearning/sklearnAdvanced/SVRTrainer/SklearnAdvancedSVRParameters.java +++ b/common/workflow-operator/src/main/scala/org/apache/texera/amber/operator/machineLearning/sklearnAdvanced/SVRTrainer/SklearnAdvancedSVRParameters.java @@ -28,7 +28,7 @@ public enum SklearnAdvancedSVRParameters implements ParamClass { degree("degree", "int"), coef0("coef0", "float"), tol("tol", "float"), - probability("shrinking", "(lambda value: value.lower() == \"true\")"), + shrinking("shrinking", "(lambda value: value.lower() == \"true\")"), verbose("verbose", "(lambda value: value.lower() == \"true\")"), epsilon("epsilon", "float"), cache_size("cache_size", "int"),
