Skip to content

Model unstable when using transformation  #12

@hilmar05

Description

@hilmar05

Hello @Michaelvll, @arminarj

I am using the DeepCCA objective in a variational autoencoder setting.
I use
U, D, Vh = torch.linalg.svd(Tval) so i can getthe U and Vh together with SigmaHat11RootInv and SigmaHat22RootInv to
get my transformation matrices w1 and w2, similar as in the file linear_cca.py but i used pytorch for the implementation.
When i apply the transformation to my original space, the model has trouble learning. Without the transformation, there is no problem. I suspect unstable gradient as stated here under the warning tab because of the singular values.
https://pytorch.org/docs/stable/generated/torch.linalg.svd.html#torch.linalg.svd.

Does anyone have an idea how to solve this problem?

Thanks you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions