Code Monkey home page Code Monkey logo

semnet's People

Contributors

mariokrenn6240 avatar

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

semnet's Issues

Incorrect cosine similarity calculation in python codes

Hello @MarioKrenn6240,

I'm working on my course project and am reading your paper and codes. It's a great idea to consider each node on the graph to be the concept and predict a research trend by doing a link prediction task.

However, when I ran through the python codes, I noticed that line 41 of calc_properties.py is dividing the dot product by the Frobenius norm (np.linalg.norm doc) of the single_net to calculate the cosine similarity between the paper i and j.

This is incorrect because the cosine similarity b/w paper i and j should be irrelevant to the other papers and it should be fixed to

    cos_sim=dot(single_net, single_net)/(
            norm(single_net, axis=1)[:,None]@norm(single_net, axis=0)[None,:]  # (n, n)
    )

The divide here is now element-wise division and the operation is well-defined in numpy.

Could you double-check it?


EDIT: Please ignore the pull request. I realized that if I implement the cosine similarity correctly, there are a bunch of cases that the entire row or column of the single_net are all 0, which results in divide by zero issues and the result becomes a bunch of np.nan.
2022-11-25_20-31

Pathnames in Matlab Version

I noticed the pathnames in various Matlab files (e.g. FromScratch.m) have Windows style back slashes (e.g. '').
(I'm running on a Mac).
Also, in the file CreateFullArticleDataAPS.m:

addpath('C:\Users\IQS-1\Dropbox\MetaNetwork\Indizes\jsonlab')

full articles dataset

Hi @MarioKrenn6240
Thanks for making the dataset and code available.

I'm trying to reproduce the dataset using create_full_article_data.py script, but I noticed that the arxiv xml files only include years from 2000 and onwards. Is there a way we get the full article set as used in the pnas paper, from 1919 year, or let me know if I'm missing something.

Thanks.

License

I enjoyed the paper and am thinking of using some of its ideas in a personal project. Before I start looking at or potentially using some of the code in this repo, I want to be legally in the clear to do so. Can you consider adding a license?

More info is here:

https://docs.github.com/en/free-pro-team@latest/github/creating-cloning-and-archiving-repositories/licensing-a-repository

You're under no obligation to choose a license. However, without a license, the default copyright laws apply, meaning that you retain all rights to your source code and no one may reproduce, distribute, or create derivative works from your work.

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.