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

Implement appropriate model/embeddings saving with high order flags. #15

Open
danwhale opened this issue Dec 18, 2022 · 2 comments
Open

Comments

@danwhale
Copy link
Collaborator

embeddings_name = (
            "../data_validation/"
            + self.data_name
            + "/processed/"
            + "embeddings_"
            + self.data_name
            + "_"
            + self.loss_name
            + ".npy"
        )
        if os.path.exists(embeddings_name):
            emb = np.load(embeddings_name)
            return emb
@danwhale
Copy link
Collaborator Author

                embeddings_name,
                out.detach().cpu().numpy(),
            )
            return out.detach().cpu().numpy()
          ```

@danwhale
Copy link
Collaborator Author

danwhale commented Dec 18, 2022

structural_neighbourhood

 if os.path.exists(
            "../data_validation/"
            + self.data_name
            + "/processed"
            + "/structural_neighbourhood_"
            + self.data_name
            + ".npy"
        ):
            new_edge_index = np.load(
                "../data_validation/"
                + self.data_name
                + "/processed"
                + "/structural_neighbourhood_"
                + self.data_name
                + ".npy"
            )
    ```
    
    np.save(
            "../data_validation/"
            + self.data_name
            + "/processed"
            + "/structural_neighbourhood_"
            + self.data_name
            + ".npy",
            np.array(new_edge_index),
        )

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

1 participant