Fix regression models#348
Merged
Merged
Conversation
…Hyperparameters component
…ling in LinearSVRSchema
…abHyperparameters component
…ientBoostingRSchema
…action_leaf and min_impurity_decrease in RandomForestRegressionSchema
…metric implementation
cristian-tamblay
approved these changes
Oct 23, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request updates several regression model schemas and utility functions to improve parameter validation, consistency, and code clarity in both backend and frontend components. The main changes involve refining the types and constraints for model hyperparameters, updating metric computation to use the latest scikit-learn API, and enhancing frontend logic for handling optimizable hyperparameters.
Backend: Model Schema and Metric Updates
Regression model schema improvements:
min_weight_fraction_leafandmin_impurity_decreasein bothRandomForestRegressionSchemaandGradientBoostingRSchemato usefloat_fieldinstead ofoptimizer_float_field, simplifying these fields and updating their placeholders accordingly. [1] [2] [3] [4]learning_ratenow requires a minimum value of 0.01, andsubsamplea minimum of 0.1 inGradientBoostingRSchema. [1] [2]CinLinearSVRSchemaandalphainRidgeRegressionSchemanow useoptimizer_int_fieldwith a minimum of 1, and their placeholders were updated for integer values. [1] [2]intercept_scalinginLinearSVRSchemanow uses a minimum value of 1.0.max_iterinRidgeRegressionSchemanow requires a minimum of 10.Regression metric update:
root_mean_squared_errorfrom scikit-learn instead of computing RMSE viamean_squared_error(..., squared=False), aligning with the latest scikit-learn API. [1] [2]Frontend: Hyperparameter Optimization Utilities
Hyperparameter optimizers logic:
checkHowManyOptimazersinschema.jsto recursively count optimizable hyperparameters, including nested parameters.ResultsTabHyperparameters.jsxto use the newcheckHowManyOptimazersfunction for determining the number of optimizable hyperparameters, improving reliability for complex parameter schemas. [1] [2]