suanrong / SDNE

This is a implementation of SDNE (Structural Deep Network embedding)
http://www.kdd.org/kdd2016/subtopic/view/structural-deep-network-embedding
322 stars 119 forks source link

Basic Usage Error #23

Closed men3malgmatti closed 4 years ago

men3malgmatti commented 4 years ago

I am trying to run the basic usage command but i get the following error raise NoSectionError(section) configparser.NoSectionError: No section: 'Graph_Data'

please let me know how to fix it

suanrong commented 4 years ago

Please provide more details. No one has reported an error like that.

men3malgmatti commented 4 years ago

Thanks for the fast reply , well the first time I ran "python main.py -c config/xx.ini" i got the following error

"SDNE/model/sdne.py", line 6, in from rbm import rbm ModuleNotFoundError: No module named 'rbm'

then I modied this line to from model.rbm import rbm

after I ran again I got the following error:

KeyError: 'Graph_Data'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "main.py", line 36, in config = Config(options.config_file) File "SDNE/config.py", line 10, in init self.train_graph_file = conf.get("Graph_Data", "train_graph_file") File "anaconda3/lib/python3.6/configparser.py", line 781, in get d = self._unify_values(section, vars) File "anaconda3/lib/python3.6/configparser.py", line 1141, in _unify_values raise NoSectionError(section) configparser.NoSectionError: No section: 'Graph_Data'

suanrong commented 4 years ago

Sorry for that misleading basic usage :)

Please try "python main.py -c config/ca-grqc.ini" or "python main.py -c config/blogcatalog.ini"