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.

visualize is failing on higher epoch and even the ratings are getting other values apart from the class_labels of [0,1] as epoch are increased

See original GitHub issue

I am trying to solve a binary matrix completion problem using IGMC Algorithm. I have kept only 2 ratings [0,1]. When I feed the data of 0 and 1 labels, create a train test split, and run the code end to end it works fine but provided the epoch I limit it to 20. so when the epoch is kept at 20, the algorithm also works and the visualize also works fine and graphs are generated, but as the epoch is increased to 30 or 40 the training ensemble code runs fine and in the edge attributes there are different labels assigned apart from 0 and 1 such as 2, 3, 4 due to which the visualize option is failing with index error

edge_types = [class_values[edge_types[x]] for x in g.edges()]
IndexError: index 2 is out of bounds for axis 0 with size 2

Please let me know if I am missing something or need to understand some code behavior or if can I apply such a binary matrix completion problem with the IGMC algorithm in the first place.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
sagar-nyamagoudacommented, Nov 1, 2022

Thanks @muhanzhang I was able to find the root cause, this issue was occurring because I had such value labels in the adjacency matrix. This was occurring while constructing the CSR matrix, since the dataset had duplicate records.

0reactions
sagar-nyamagoudacommented, Nov 1, 2022

The issue was resolved by removing duplicate records from the dataset

Read more comments on GitHub >

github_iconTop Results From Across the Web

Difference Between a Batch and an Epoch in a Neural Network
When the batch size is more than one sample and less than the size of the training dataset, the learning algorithm is called...
Read more >
Can the number of epochs influence overfitting?
In general too many epochs may cause your model to over-fit the training data. It means that your model does not learn the...
Read more >
Epoch vs Batch Size vs Iterations - Towards Data Science
We need terminologies like epochs, batch size, iterations only when the data is too big which happens all the time in machine learning...
Read more >
Evaluate AutoML experiment results - Azure Machine Learning
Learn how to view and evaluate charts and metrics for each of your automated machine learning experiment jobs.
Read more >
Makoto's preprocessing pipeline - SCCN
I have another SCCN Wiki page Makoto's useful EEGLAB code which is more coding ... 10 Epoch data to -1 to 2 sec...
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