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

TypeError: unsupported operand type(s) for +: 'NoneType' and 'NoneType' #84

Open
POLARXSSS opened this issue Jul 23, 2023 · 1 comment

Comments

@POLARXSSS
Copy link

Hi muhan, 我最近使用模型时遇到这个问题不知道怎么解决:
Traceback (most recent call last):
File "C:\Users\Miao Jiangbei\Desktop\计算机\机器学习\Lab\SEAL\Python\Main.py", line 162, in
train_graphs, test_graphs, max_n_label = links2subgraphs(
File "C:\Users\Miao Jiangbei\Desktop\计算机\机器学习\Lab\SEAL\Python\util_functions.py", line 135, in links2subgraphs
train_graphs = helper(A, train_pos, 1) + helper(A, train_neg, 0)
TypeError: unsupported operand type(s) for +: 'NoneType' and 'NoneType'
我不知道为什么会得到'NoneType'

@muhanzhang
Copy link
Owner

Can you try to set a breakpoint before g_list in helper() function to see what it prints? Seems the helper does not return any subgraphs, not even an empty list.

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