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

I met problems when running my own dataset #104

Open
LaoWang-123 opened this issue Apr 19, 2021 · 0 comments
Open

I met problems when running my own dataset #104

LaoWang-123 opened this issue Apr 19, 2021 · 0 comments

Comments

@LaoWang-123
Copy link

My dataset has 6 types of edge and 3 types of nodes. When I run this model with main.py without schema, it shows the failure as follows.

Traceback (most recent call last):
File "src\main.py", line 226, in
average_auc, average_f1, average_pr = train_model(training_data_by_type, feature_dic, log_name + '_' + time.strftime('%Y-%m-%d %H-%M-%S',time.localtime(time.time())))
File "src\main.py", line 181, in train_model
tmp_auc, tmp_f1, tmp_pr = evaluate(final_model[edge_types[i]], valid_true_data_by_edge[edge_types[i]], valid_false_data_by_edge[edge_types[i]])
KeyError: '5'
keyerror is an edge_type name

However, when I use schema, I could see the generate walks work on 6 layers while other funcitons (save walks,count vocab, generate train pairs) only work on three layers.
Thank you very much.

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