bayesline.api.equity.RiskDatasetUploadedExposureSettings#

pydantic model bayesline.api.equity.RiskDatasetUploadedExposureSettings#

Settings for uploaded exposure data in a risk dataset.

This class defines settings for using exposure data from uploaded sources, with options for gaussianization, missing value filling, and factor group management.

Show JSON schema
{
   "title": "RiskDatasetUploadedExposureSettings",
   "description": "Settings for uploaded exposure data in a risk dataset.\n\nThis class defines settings for using exposure data from uploaded sources,\nwith options for gaussianization, missing value filling, and factor group management.",
   "type": "object",
   "properties": {
      "exposure_type": {
         "const": "uploaded",
         "default": "uploaded",
         "title": "Exposure Type",
         "type": "string"
      },
      "exposure_source": {
         "description": "The uploaded source of the exposures.",
         "title": "Exposure Source",
         "type": "string"
      },
      "continuous_factor_groups": {
         "description": "The continuous factor groups from the uploaded dataset to carry over.",
         "items": {
            "type": "string"
         },
         "title": "Continuous Factor Groups",
         "type": "array"
      },
      "categorical_factor_groups": {
         "description": "The categorical factor groups from the uploaded dataset to carry over.",
         "items": {
            "type": "string"
         },
         "title": "Categorical Factor Groups",
         "type": "array"
      },
      "factor_groups_gaussianize": {
         "description": "For which continuous groups to gaussianize the exposures.",
         "items": {
            "type": "string"
         },
         "title": "Factor Groups Gaussianize",
         "type": "array"
      },
      "factor_groups_gaussianize_maintain_zeros": {
         "description": "For which continuous groups to gaussianize the exposures and maintain zeros.",
         "items": {
            "type": "string"
         },
         "title": "Factor Groups Gaussianize Maintain Zeros",
         "type": "array"
      },
      "factor_groups_fill_miss": {
         "description": "For which continuous groups to fill missing values.",
         "items": {
            "type": "string"
         },
         "title": "Factor Groups Fill Miss",
         "type": "array"
      }
   },
   "additionalProperties": false,
   "required": [
      "exposure_source"
   ]
}

Config:
  • frozen: bool = True

  • extra: str = forbid

Fields:
  • categorical_factor_groups (list[str])

  • continuous_factor_groups (list[str])

  • exposure_source (str)

  • exposure_type (Literal['uploaded'])

  • factor_groups_fill_miss (list[str])

  • factor_groups_gaussianize (list[str])

  • factor_groups_gaussianize_maintain_zeros (list[str])

field exposure_type: Literal['uploaded'] = 'uploaded'#
field exposure_source: str [Required]#

The uploaded source of the exposures.

field continuous_factor_groups: list[str] [Optional]#

The continuous factor groups from the uploaded dataset to carry over.

field categorical_factor_groups: list[str] [Optional]#

The categorical factor groups from the uploaded dataset to carry over.

field factor_groups_gaussianize: list[str] [Optional]#

For which continuous groups to gaussianize the exposures.

field factor_groups_gaussianize_maintain_zeros: list[str] [Optional]#

For which continuous groups to gaussianize the exposures and maintain zeros.

field factor_groups_fill_miss: list[str] [Optional]#

For which continuous groups to fill missing values.