cann.surrogate package

Submodules

cann.surrogate.mlp module

cann.surrogate.mlp.build_mlp_network(model_config, training_config)[source]

Build a feedforward neural network (MLP) for the surrogate.

Parameters:
  • model_config (ModelConfig) – Configuration for the underlying pricing model.

  • training_config (TrainingConfig) – Hyperparameters and settings for training.

Returns:

The constructed neural network model.

Return type:

torch.nn.Module

Raises:

ValueError: If the activation function specified in training_config is unsupported.

Module contents