huawei-noah / trustworthyAI

Trustworthy AI related projects

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for multiple sem types for nonlinear stimulated data

shaido987 opened this issue · comments

The IIDSimulator already supports multiple sem types for the linear case for a single simulated dataset. This could be added to the nonlinear case as well.

Refer to

def _simulate_linear_sem(W, n, sem_type, noise_scale):
"""
Simulate samples from linear SEM with specified type(s) of noise.

and

def _simulate_nonlinear_sem(W, n, sem_type, noise_scale):
"""
Simulate samples from nonlinear SEM.

A difference would be the quadratic case which would be needed to handle somehow.