Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cbalona/reinsurance
/ functions
Functions
41 in github.com/cbalona/reinsurance
⨍
Functions
41
◇
Types & classes
12
↓ 2 callers
Method
_burn
Calculate the burn values. Args: x (np.ndarray): Input array. Returns: np.ndarray: Array con
src/reinsurance/layers/non_proportional.py:43
↓ 1 callers
Method
__init__
Initialize a Layer object. Args: name (str, optional): Name of the layer. Defaults to None.
src/reinsurance/layers/core.py:12
↓ 1 callers
Method
_recovery
Calculate the recovery array. Args: x (np.ndarray): Input array. Returns: dict[str, np.ndarr
src/reinsurance/layers/non_proportional.py:60
↓ 1 callers
Method
_reinstatement_premium
Calculate the reinstatement premium array. Args: x (np.ndarray): Input array. Returns: dict[
src/reinsurance/layers/non_proportional.py:73
↓ 1 callers
Method
add
Add two layers. Args: x1 (Layer): First layer. x2 (Layer): Second layer. Returns:
src/reinsurance/layers/core.py:99
↓ 1 callers
Method
commission
Retrieve the commission array from the input dictionary. Args: x (np.ndarray): Input dictionary. Returns:
src/reinsurance/layers/core.py:348
↓ 1 callers
Method
divide
Divide two layers. Args: x1 (Layer): First layer. x2 (Layer): Second layer. Returns:
src/reinsurance/layers/core.py:228
↓ 1 callers
Method
excess_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 callers
Method
forward
Forward pass of the layer. Args: x (np.ndarray): Input array. Returns: np.ndarray: Output ar
src/reinsurance/layers/core.py:23
↓ 1 callers
Method
forward
Forward pass of the addition layer. Args: x1 (Layer): First layer. x2 (Layer): Second layer.
src/reinsurance/layers/core.py:112
↓ 1 callers
Method
forward
Forward pass of the subtraction layer. Args: x1 (Layer): First layer. x2 (Layer): Second layer.
src/reinsurance/layers/core.py:155
↓ 1 callers
Method
forward
Forward pass of the multiplication layer. Args: x1 (Layer): First layer. x2 (Layer): Second layer.
src/reinsurance/layers/core.py:198
↓ 1 callers
Method
forward
Forward pass of the division layer. Args: x1 (Layer): First layer. x2 (Layer): Second layer.
src/reinsurance/layers/core.py:241
↓ 1 callers
Method
forward
Forward pass of the Input layer. Args: x (np.ndarray): Input array. Returns: np.ndarray: Out
src/reinsurance/layers/core.py:293
↓ 1 callers
Method
input
Identity return. Args: x (np.ndarray): Input array. Returns: np.ndarray: Input array.
src/reinsurance/layers/core.py:281
↓ 1 callers
Method
multiply
Multiply two layers. Args: x1 (Layer): First layer. x2 (Layer): Second layer. Returns:
src/reinsurance/layers/core.py:185
↓ 1 callers
Method
quota_share
Perform quota share calculations. Args: x (np.ndarray): Input array. Returns: dict[str, np.n
src/reinsurance/layers/proportional.py:28
↓ 1 callers
Method
recovery
Retrieve the recovery array from the input dictionary. Args: x (np.ndarray): Input dictionary. Returns:
src/reinsurance/layers/core.py:321
↓ 1 callers
Method
reinstatement_premium
Retrieve the reinstatement premium array from the input dictionary. Args: x (np.ndarray): Input dictionary.
src/reinsurance/layers/core.py:375
↓ 1 callers
Method
subtract
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
Method
compute
Compute the outputs of the model. Args: scheduler (str, optional): Dask scheduler to use. Defaults to None.
src/reinsurance/models/model.py:23
Method
forward
Forward pass of the Recovery layer. Args: x (np.ndarray): Input dictionary. Returns: dict[st
src/reinsurance/layers/core.py:333
Method
forward
Forward pass of the Commission layer. Args: x (np.ndarray): Input dictionary. Returns: dict[
src/reinsurance/layers/core.py:360
Method
forward
Forward pass of the ReinstatementPremium layer. Args: x (np.ndarray): Input dictionary. Returns:
src/reinsurance/layers/core.py:388
Method
forward
Forward pass of the ExcessOfLossLayer. Args: x (np.ndarray): Input array. Returns: dict[str,
src/reinsurance/layers/non_proportional.py:113
Method
forward
Forward pass of the QuotaShare layer. Args: x (np.ndarray): Input array. Returns: dict[str,
src/reinsurance/layers/proportional.py:45
Method
visualize
Visualize the computation graph of the model.
src/reinsurance/models/model.py:41