fishmoon1234 / DAG-GNN

Apache License 2.0
290 stars 70 forks source link

Synthetic data, how to get X without noise? #16

Open INPUTrrr0 opened 2 years ago

INPUTrrr0 commented 2 years ago

Hello, I am confused about how the X data is generated. From my understanding it should satisfy X=A_transpose * X, where is the ground truth graph G, randomly generated in simulate_random_dag. However, in simulate_sem, the variable "eta" seems to be 0, as X is initiated as np.zeros. And eta is X.dot(W), where W is G as np array. If I don't add any noise to it, X is just zero. I'm just wondering if there is a way to get X without noise? Sorry, I'm not very familiar with it. Much appreciated!!