question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not able to reproduce results

See original GitHub issue
Traceback (most recent call last):
  File "Main.py", line 338, in <module>
    multiply_by=multiply_by)
  File "/Users/vasfern/Downloads/IGMC-master/models.py", line 146, in __init__
    super(IGMC, self).__init__(dataset, GCNConv, latent_dim, regression, adj_dropout, force_undirected)
  File "/Users/vasfern/Downloads/IGMC-master/models.py", line 20, in __init__
    self.convs.append(gconv(dataset.num_features, latent_dim[0]))
  File "/Users/vasfern/Downloads/IGMC-master/.venv/lib/python3.6/site-packages/torch_geometric/data/dataset.py", line 117, in num_features
    return self.num_node_features
  File "/Users/vasfern/Downloads/IGMC-master/.venv/lib/python3.6/site-packages/torch_geometric/data/dataset.py", line 112, in num_node_features
    return self[0].num_node_features
  File "/Users/vasfern/Downloads/IGMC-master/.venv/lib/python3.6/site-packages/torch_geometric/data/dataset.py", line 188, in __getitem__
    data = self.get(self.indices()[idx])
TypeError: 'tuple' object is not callable

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Lim-Sung-Juncommented, Aug 1, 2021

@Lim-Sung-Jun Sorry I did not get you. Could you restate your question and provide instructions for reproducing the bug?

I solved this problem, thank you for your attention!

0reactions
Alizah-Masoodcommented, Aug 28, 2021

Thanks. I did figure it out.

@Lim-Sung-Jun Sorry I did not get you. Could you restate your question and provide instructions for reproducing the bug?

I solved this problem, thank you for your attention!

Hi, I’m having the same issue. Can you please specify how exactly you solved this problem?

  1. File “/IGMC/models.py”, line 22: Change “num_features” to “num_node_features”
  2. .File “/IGMC/util_functions.py”, line 135: Change “def len(self)” to “def len(self)” Then, you will solve this problem.

Thanks! I did figure it out.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Six factors affecting reproducibility in life science research and ...
There are several reasons why an experiment cannot be replicated. Independent verification of data is a fundamental principle of scientific research across ...
Read more >
Why can't we reproduce so many scientific findings?
Being able to do an experiment over again and confirm the results is actually a crucial aspect of science, called reproducibility.
Read more >
What should I do if I cannot reproduce experimental published ...
Try to replicate the experimental conditions as much as possible, try to get any "hidden" steps if there are any, and if the...
Read more >
What Happens When Someone Fails to Reproduce ... - Enago
If you receive notification that someone failed to reproduce your research, the situation may not be as bleak as you would think.
Read more >
Replication crisis - Wikipedia
The replication crisis is an ongoing methodological crisis in which the results of many scientific studies are difficult or impossible to reproduce.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found