Giter Club home page Giter Club logo

cs224w_winter2021's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cs224w_winter2021's Issues

Colab_4, error about HeteroGraph

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?

homework question

Do you think it would be possible to post the homework question pdf files? Thank you!

On hw1 question 6

hello there i am just wondering why do we need a nega-sampling here, isn't nega-sampling only for random walk?

problem about colab_1,Q3

image
image
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)

Some mistakes in colab 1

  1. For Q4, networkx closeness centrality returns the normalized closeness directly, which is different from the raw (unnormalized) one that we learned in the lecture. You should add closeness = closeness * (G.number_of_nodes() - 1) in your code.
  2. For Q6, you directly used edge_1 in is_neg_edge(), which causes your outputs to be wrong.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.