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

fix a few issues in notebooks and change the result of l1reg to a sparse vector #65

Merged
merged 5 commits into from
Oct 31, 2018

Conversation

MengLiuPurdue
Copy link
Collaborator

No description provided.

for i in range(len(p)):
if p[i] != 0:
idx[it] = i
vals[it] = p[i]*1.0 / (G.ai[i+1]-G.ai[i]) if normalize else p[i]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use the degree vector that's been precomputed... this will be faster and handle weights...

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dgleich Does this mean line 121 should be changed as well? I thought we should normalize with respect to the number of edges instead of degree.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, Line 121 is the ACL unweighted branch, which means we don't WANT to use degrees...

@coveralls
Copy link

coveralls commented Oct 30, 2018

Pull Request Test Coverage Report for Build 74

  • 12 of 13 (92.31%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.05%) to 91.255%

Changes Missing Coverage Covered Lines Changed/Added Lines %
localgraphclustering/approximate_PageRank.py 12 13 92.31%
Totals Coverage Status
Change from base Build 71: 0.05%
Covered Lines: 1440
Relevant Lines: 1578

💛 - Coveralls

@MengLiuPurdue MengLiuPurdue merged commit d05e389 into kfoynt:master Oct 31, 2018
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

Successfully merging this pull request may close these issues.

None yet

3 participants