hdvvip / cs224w_winter2021 Goto Github PK
View Code? Open in Web Editor NEWCS224W Stanford Winter 2021 Homework solutions
CS224W Stanford Winter 2021 Homework solutions
I think the equation in the second image is the same as the equation in the first image.Therefore,you do not need to add (1 - B) / N in each loop.
Maybe you can alter your code just like this
for node_neighbor in G.neighbors(node_id):
node_deg = G.degree[node_neighbor]
# Notice that all nodes share the same PageRank value r0 at the first iteration
r1 += beta * r0/node_deg
r1 += (1-beta)*1/N
r1 = round(r1, 2)
Do you think it would be possible to post the homework question pdf files? Thank you!
closeness = closeness * (G.number_of_nodes() - 1)
in your code.edge_1
in is_neg_edge()
, which causes your outputs to be wrong.Thanks for sharing! I am interested in this course too, and I found that there are 3 homework assignments in this course. However these assignments seem to have no links on the course website. Is there any way to get them?
When I was running the following codes,
from deepsnap.hetero_graph import HeteroGraph
hete = HeteroGraph(G_orig)
I got the error, saying
TypeError: Unknown type color in edge attributes.
However, in the previous lines, there is a line like:
colors = nx.get_edge_attributes(G,'color').values()
and it works. It means G has the attributes 'color'. So I am confused, what should I do?
hello there i am just wondering why do we need a nega-sampling here, isn't nega-sampling only for random walk?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.