Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CausalVAE u纬度和A不同时应该如何修改,直接将u通过mlp映射到相同的纬度可以吗 #167

Open
AndrewTal opened this issue Jan 3, 2025 · 1 comment

Comments

@AndrewTal
Copy link

def mask_u(self,x):
    self.B = self.A
    #if self.i:
    #    x = x.view(-1, x.size()[1], 1)
    #    x = torch.matmul((self.B+0.5).t().int().float(), x)
    #    return x
    x = x.view(-1, x.size()[1], 1)
    x = torch.matmul(self.B.t(), x)
    return x

您好,如果 u 和 causal 矩阵 A 的维度不同,例如只 flow 数据集中 4 个参数只给出其中 1 个作为 u,代码应该如何修改?直接将u通过mlp映射到A相同的纬度可以吗

@shaido987
Copy link
Collaborator

Hello,

The first author of CausalVAE has already completed her internship with us. For a faster and more detailed reply, you can email this and any further questions to Mengyue Yang ([email protected]). You could include a link to this issue as context.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants