MCPcopy Create free account

hub / github.com/cbalona/reinsurance / functions

Functions41 in github.com/cbalona/reinsurance

↓ 2 callersMethod_burn
Calculate the burn values. Args: x (np.ndarray): Input array. Returns: np.ndarray: Array con
src/reinsurance/layers/non_proportional.py:43
↓ 1 callersMethod__init__
Initialize a Layer object. Args: name (str, optional): Name of the layer. Defaults to None.
src/reinsurance/layers/core.py:12
↓ 1 callersMethod_recovery
Calculate the recovery array. Args: x (np.ndarray): Input array. Returns: dict[str, np.ndarr
src/reinsurance/layers/non_proportional.py:60
↓ 1 callersMethod_reinstatement_premium
Calculate the reinstatement premium array. Args: x (np.ndarray): Input array. Returns: dict[
src/reinsurance/layers/non_proportional.py:73
↓ 1 callersMethodadd
Add two layers. Args: x1 (Layer): First layer. x2 (Layer): Second layer. Returns:
src/reinsurance/layers/core.py:99
↓ 1 callersMethodcommission
Retrieve the commission array from the input dictionary. Args: x (np.ndarray): Input dictionary. Returns:
src/reinsurance/layers/core.py:348
↓ 1 callersMethoddivide
Divide two layers. Args: x1 (Layer): First layer. x2 (Layer): Second layer. Returns:
src/reinsurance/layers/core.py:228
↓ 1 callersMethodexcess_of_loss
Calculate the excess of loss arrays. Args: x (np.ndarray): Input array. Returns: dict[str, n
src/reinsurance/layers/non_proportional.py:96
↓ 1 callersMethodforward
Forward pass of the layer. Args: x (np.ndarray): Input array. Returns: np.ndarray: Output ar
src/reinsurance/layers/core.py:23
↓ 1 callersMethodforward
Forward pass of the addition layer. Args: x1 (Layer): First layer. x2 (Layer): Second layer.
src/reinsurance/layers/core.py:112
↓ 1 callersMethodforward
Forward pass of the subtraction layer. Args: x1 (Layer): First layer. x2 (Layer): Second layer.
src/reinsurance/layers/core.py:155
↓ 1 callersMethodforward
Forward pass of the multiplication layer. Args: x1 (Layer): First layer. x2 (Layer): Second layer.
src/reinsurance/layers/core.py:198
↓ 1 callersMethodforward
Forward pass of the division layer. Args: x1 (Layer): First layer. x2 (Layer): Second layer.
src/reinsurance/layers/core.py:241
↓ 1 callersMethodforward
Forward pass of the Input layer. Args: x (np.ndarray): Input array. Returns: np.ndarray: Out
src/reinsurance/layers/core.py:293
↓ 1 callersMethodinput
Identity return. Args: x (np.ndarray): Input array. Returns: np.ndarray: Input array.
src/reinsurance/layers/core.py:281
↓ 1 callersMethodmultiply
Multiply two layers. Args: x1 (Layer): First layer. x2 (Layer): Second layer. Returns:
src/reinsurance/layers/core.py:185
↓ 1 callersMethodquota_share
Perform quota share calculations. Args: x (np.ndarray): Input array. Returns: dict[str, np.n
src/reinsurance/layers/proportional.py:28
↓ 1 callersMethodrecovery
Retrieve the recovery array from the input dictionary. Args: x (np.ndarray): Input dictionary. Returns:
src/reinsurance/layers/core.py:321
↓ 1 callersMethodreinstatement_premium
Retrieve the reinstatement premium array from the input dictionary. Args: x (np.ndarray): Input dictionary.
src/reinsurance/layers/core.py:375
↓ 1 callersMethodsubtract
Subtract two layers. Args: x1 (Layer): First layer. x2 (Layer): Second layer. Returns:
src/reinsurance/layers/core.py:142
Method__add__
Add two layers. Args: other (Self): Layer to be added. Returns: Self: Resulting layer.
src/reinsurance/layers/core.py:48
Method__call__
Perform forward pass through the layer. Args: input_layer (Self): Input layer. Returns: Self
src/reinsurance/layers/core.py:35
Method__call__
Perform forward pass through the layer. Args: x1 (Layer): Left layer. x2 (Layer): Right layer.
src/reinsurance/layers/core.py:125
Method__call__
Perform forward pass through the layer. Args: x1 (Layer): Left layer. x2 (Layer): Right layer.
src/reinsurance/layers/core.py:168
Method__call__
Perform forward pass through the layer. Args: x1 (Layer): Left layer. x2 (Layer): Right layer.
src/reinsurance/layers/core.py:211
Method__call__
Perform forward pass through the layer. Args: x1 (Layer): Left layer. x2 (Layer): Right layer.
src/reinsurance/layers/core.py:254
Method__call__
Perform forward pass through the layer. Args: input_layer (Self): Input layer. Returns: Self
src/reinsurance/layers/core.py:305
Method__init__
Initialize an Input layer. Args: x (np.ndarray): Input array.
src/reinsurance/layers/core.py:270
Method__init__
Initialize an ExcessOfLossLayer. Args: attachment (float): Attachment point. width (float): Width of th
src/reinsurance/layers/non_proportional.py:12
Method__init__
Initialize a QuotaShare layer. Args: cession (float): Cession value. commission (float, optional): Comm
src/reinsurance/layers/proportional.py:12
Method__init__
Initialize a Model. Args: input_layers (list[Layer]): List of input layers. output_layers (list[Layer])
src/reinsurance/models/model.py:12
Method__mul__
Multiply two layers. Args: other (Self): Layer to be multiplied. Returns: Self: Resulting la
src/reinsurance/layers/core.py:72
Method__sub__
Subtract two layers. Args: other (Self): Layer to be subtracted. Returns: Self: Resulting la
src/reinsurance/layers/core.py:60
Method__truediv__
Divide two layers. Args: other (Self): Layer to be divided. Returns: Self: Resulting layer.
src/reinsurance/layers/core.py:84
Methodcompute
Compute the outputs of the model. Args: scheduler (str, optional): Dask scheduler to use. Defaults to None.
src/reinsurance/models/model.py:23
Methodforward
Forward pass of the Recovery layer. Args: x (np.ndarray): Input dictionary. Returns: dict[st
src/reinsurance/layers/core.py:333
Methodforward
Forward pass of the Commission layer. Args: x (np.ndarray): Input dictionary. Returns: dict[
src/reinsurance/layers/core.py:360
Methodforward
Forward pass of the ReinstatementPremium layer. Args: x (np.ndarray): Input dictionary. Returns:
src/reinsurance/layers/core.py:388
Methodforward
Forward pass of the ExcessOfLossLayer. Args: x (np.ndarray): Input array. Returns: dict[str,
src/reinsurance/layers/non_proportional.py:113
Methodforward
Forward pass of the QuotaShare layer. Args: x (np.ndarray): Input array. Returns: dict[str,
src/reinsurance/layers/proportional.py:45
Methodvisualize
Visualize the computation graph of the model.
src/reinsurance/models/model.py:41