gemseo.mlearning.regression.algos.moe_settings module#

Settings of the mixture of experts.

Settings MOERegressor_Settings(*, transformer=<factory>, parameters=<factory>, input_names=(), output_names=(), hard=True)[source]#

Bases: BaseRegressorSettings

The settings of the mixture of experts.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

Parameters:
  • transformer (Mapping[str, Any]) --

    By default it is set to <factory>.

  • parameters (Mapping[str, Any]) --

    By default it is set to <factory>.

  • input_names (Sequence[str]) --

    By default it is set to ().

  • output_names (Sequence[str]) --

    By default it is set to ().

  • hard (bool) --

    By default it is set to True.

Return type:

None

hard: bool = True#

Whether to use a hard classification.

model_post_init(context, /)#

This function is meant to behave like a BaseModel method to initialise private attributes.

It takes context as an argument since that's what pydantic-core passes when calling it.

Parameters:
  • self (BaseModel) -- The BaseModel instance.

  • context (Any) -- The context.

Return type:

None

MOE_Settings#

alias of MOERegressor_Settings