dagma.utils

Module Contents

Functions

set_random_seed(seed)

is_dag(→ bool)

Returns True if W is a DAG, False otherwise.

simulate_dag(→ numpy.ndarray)

Simulate random DAG with some expected number of edges.

simulate_parameter(, )) → numpy.ndarray)

Simulate SEM parameters for a DAG.

simulate_linear_sem(→ numpy.ndarray)

Simulate samples from linear SEM with specified type of noise.

simulate_nonlinear_sem(→ numpy.ndarray)

Simulate samples from nonlinear SEM.

count_accuracy(→ dict)

Compute various accuracy metrics for B_est.


Last update: Jan 14, 2024