bayesline.api.equity.MovingAverageRSquaredMeasureSettings#

pydantic model bayesline.api.equity.MovingAverageRSquaredMeasureSettings#

Show JSON schema
{
   "title": "MovingAverageRSquaredMeasureSettings",
   "type": "object",
   "properties": {
      "type": {
         "const": "MovingAverageRSquared",
         "default": "MovingAverageRSquared",
         "title": "Type",
         "type": "string"
      },
      "rescale_bench": {
         "default": true,
         "description": "Rescale the benchmark holdings to sum to the sum of the holdings.",
         "title": "Rescale Bench",
         "type": "boolean"
      },
      "normalize_holdings": {
         "default": true,
         "description": "Make holdings sum to one.",
         "title": "Normalize Holdings",
         "type": "boolean"
      },
      "window": {
         "default": "6mo",
         "description": "The size of the rolling window",
         "title": "Window",
         "type": "string"
      }
   },
   "additionalProperties": false
}

Config:
  • frozen: bool = True

  • extra: str = forbid

Fields:
  • normalize_holdings (bool)

  • rescale_bench (bool)

  • type (Literal['MovingAverageRSquared'])

  • window (str)

field type: Literal['MovingAverageRSquared'] = 'MovingAverageRSquared'#
field rescale_bench: bool = True#

Rescale the benchmark holdings to sum to the sum of the holdings.

field normalize_holdings: bool = True#

Make holdings sum to one.

field window: str = '6mo'#

The size of the rolling window