Git Product home page Git Product logo

Comments (10)

GTmac avatar GTmac commented on July 16, 2024

Sorry, I don't quite understand your question. What do you mean by __current_graph? What graph are you running DeepWalk on?

from deepwalk.

kuaileyichu avatar kuaileyichu commented on July 16, 2024

__current_graph is a parameter in the code

from deepwalk.

GTmac avatar GTmac commented on July 16, 2024

Can you show me a minimal reproducible example so that I can reproduce the issue -- what arguments are you running DeepWalk with and what test graph are you using?

from deepwalk.

kuaileyichu avatar kuaileyichu commented on July 16, 2024

deepwalk --format mat --input example_graphs/blogcatalog.mat --max-memory-data-size 0 --number-walks 80 --representation-size 128 --walk-length 40 --window-size 10 --workers 1 --output example_graphs/blogcatalog.embeddings

I just tried the example. Thanks.

from deepwalk.

GTmac avatar GTmac commented on July 16, 2024

Are you running DeepWalk on Windows? This issue #18 seems to be relevant.

from deepwalk.

kuaileyichu avatar kuaileyichu commented on July 16, 2024

yes, on windows 10.

from deepwalk.

GTmac avatar GTmac commented on July 16, 2024

Then you could fix this issue by upgrading your future package to the latest. Let me know if this works

from deepwalk.

kuaileyichu avatar kuaileyichu commented on July 16, 2024

Thanks a lot! I find that it can run with python 2.7. I used python 3.6.

from deepwalk.

ikennaoluigbo avatar ikennaoluigbo commented on July 16, 2024

import logging
from io import open
from os import path
from time import time
from multiprocessing import cpu_count
import random
from concurrent.futures import ProcessPoolExecutor
from collections import Counter

from six.moves import zip

import graph

logger = logging.getLogger("deepwalk")

__current_graph = None

__vertex2str = None

In the walk module of deepwalk, _current_graph and _vertex2str are both set to None as shown above.
And as a result of this, I get this error "AttributeError: 'NoneType' object has no attribute 'keys".

What is the solution to this please?

from deepwalk.

GTmac avatar GTmac commented on July 16, 2024

Are you running DeepWalk on Windows? What is the exact command you ran? Looking at the previous similar issues, it seems that the problem can be fixed by upgrading your future package to the latest. Let me know if this works for you. Thanks!

from deepwalk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.