Loading...

vastorbit.machine_learning.vast.preprocessing.RobustScaler.set_params

RobustScaler.set_params(parameters: dict | None = None, **kwargs) None

Sets the parameters of the model.

Parameters:
  • parameters (dict, optional) – New parameters.

  • **kwargs – New parameters can also be passed as arguments, Example: set_params(param1 = val1, param2 = val2)

Examples

Let’s import the model:

from vastorbit.machine_learning.vast import LinearRegression

Then we can create the model:

model = LinearRegression(
    tol = 1e-6,
    fit_intercept = True,
)

We can easily get the model parameters:

model.get_params()

Let’s change some of the parameter.

model.set_params(
    solver = 'lbfgs',
    max_iter = 200,
)

The parameters have changed:

model.get_params()

Important

For this example, a specific model is utilized, and it may not correspond exactly to the model you are working with. To see a comprehensive example specific to your class of interest, please refer to that particular class.