CausalGANOptions<T>

Options & Configuration · AiDotNet.Models.Options

Configuration options for Causal-GAN, a GAN that learns causal graph structure and generates data respecting causal relationships between features.

Inheritance: ModelOptions → NeuralNetworkOptions → ModelHyperparameterOptions → FinancialNeuralNetworkOptions → RiskModelOptions<T> → SyntheticDataGeneratorOptions<T> → CausalGANOptions<T>

For Beginners

Causal-GAN learns which features cause other features:

Instead of just learning correlations (e.g., “Age and Income are related”), it learns causation (e.g., “Education causes higher Income”).

This allows:

  1. Generating more realistic data (respecting cause-effect chains)
  2. Answering “what if” questions (“what if everyone had a college degree?”)

Example:

How It Works

Causal-GAN discovers and uses causal structure:

  • DAG structure learning: NOTEARS-style continuous relaxation for learning a directed acyclic graph
  • Structural equation models: Each feature is generated as a function of its causal parents
  • Interventional generation: Can simulate “what-if” scenarios by intervening on specific features

Constructors

Constructor Summary
CausalGANOptions()

Properties

Property Summary
double DAGPenaltyWeight { get; set; } Gets or sets the weight for the DAG acyclicity penalty (NOTEARS constraint).
double DiscriminatorDropout { get; set; } Gets or sets the dropout rate for discriminator hidden layers.
double GradientPenaltyWeight { get; set; } Gets or sets the weight for the WGAN-GP gradient penalty term.
double LearningRate { get; set; } Gets or sets the learning rate.
double SparsityWeight { get; set; } Gets or sets the sparsity weight for the learned adjacency matrix.
int BatchSize { get; set; } Gets or sets the training batch size.
int DiscriminatorSteps { get; set; } Gets or sets the number of discriminator training steps per generator step.
int EmbeddingDimension { get; set; } Gets or sets the noise dimension.
int Epochs { get; set; } Gets or sets the number of training epochs.
int VGMModes { get; set; } Gets or sets the number of VGM modes for continuous column encoding.
int[] HiddenDimensions { get; set; } Gets or sets the hidden layer sizes.