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

Error with running model CoRGi #3

Closed
nyongja opened this issue Feb 6, 2022 · 4 comments
Closed

Error with running model CoRGi #3

nyongja opened this issue Feb 6, 2022 · 4 comments

Comments

@nyongja
Copy link

nyongja commented Feb 6, 2022

When I run the CoRGi model with the Goodreads dataset, there are several errors.
I made a goodreads dataset with this code, 'research_experiences/GNN/create_goodreads_dataset.py'.

First, in line 325 of the graph_neural_network.py, an assertion occurs because the data format is not GraphData.
So I tried to use the to_graph function in Dataset Class.

And in 842 of the graph_neural_network.py, AttributeError occurs because there is no x attribute in the data.

AttributeError: 'Dataset' object does not have attribute 'x'.

How do I solve this?

@nyongja
Copy link
Author

nyongja commented Feb 6, 2022

It was solved by changing the dataet_format to gnn_csv! Thank you

@nyongja nyongja closed this as completed Feb 6, 2022
@nyongja
Copy link
Author

nyongja commented Feb 6, 2022

How can I change the sentences.csv to sentences_array.npy in goodreads dataset?

@nyongja nyongja reopened this Feb 6, 2022
@jyscardioid
Copy link

How can I change the sentences.csv to sentences_array.npy in goodreads dataset?

Assuming you already have sentences.csv,
you can run transform_sentence_csv_to_list() in research_experiments/eedi/sentence_to_embedding.py.
It reads the csv file using pd.read_csv and makes it into an array.

@nyongja
Copy link
Author

nyongja commented Mar 30, 2022

Thank you for your answer 👍

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

3 participants