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

ValueError: 11 columns passed, passed data had 14 columns #31

Closed
Shawnmhy opened this issue Jan 31, 2021 · 1 comment
Closed

ValueError: 11 columns passed, passed data had 14 columns #31

Shawnmhy opened this issue Jan 31, 2021 · 1 comment

Comments

@Shawnmhy
Copy link

Hello, I am trying to run graph2vec on my own dataset. It seems like each graph will use different values of dimensions, as I encountered the following error during my run:

Traceback (most recent call last): File "graph2vec.py", line 137, in <module> main(args) File "graph2vec.py", line 133, in main save_embedding(args.output_path, model, graphs, args.dimensions) File "graph2vec.py", line 106, in save_embedding out = pd.DataFrame(out, columns=column_names) File "C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\frame.py", line 474, in __init__ arrays, columns = to_arrays(data, columns, dtype=dtype) File "C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\internals\construction.py", line 461, in to_arrays return _list_to_arrays(data, columns, coerce_float=coerce_float, dtype=dtype) File "C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\internals\construction.py", line 500, in _list_to_arrays raise ValueError(e) from e ValueError: 11 columns passed, passed data had 14 columns
Could you please suggest how to solve this problem?

@benedekrozemberczki
Copy link
Owner

Yes, I would recommend using the KarateClub library. It provides a richer set of whole graph embedding techniques. Could you star it and hit a follow on GitHub?

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