Git Product home page Git Product logo

peoplecompetition's Introduction

PeopleCompetition

我们的代码分为了几个步骤,首先是数据的预处理,放在了dataProcess文件夹,运行generate_adj.py文件可以产生接下来需要的people.mat文件 GNNs程序是社区划分的主程序,在这是我们输出并保存了划分结果,我们采用了GNNs作为模型,由于GNNs有较好的适应性,对于社区的划分是基于设定最大社区数量的软划分(不会强制产生最大数量的社区,在设置最大社区数量为2080时,GNNs的划分结果是产生了实际数量为32的社区划分) 98551b73d03395852b1e9c7f3da099c6 为此我们采用了leiden算法来寻找一个合适的最大社区数量,GNNs.py中nums_initials_GNNs_configs 是重复寻最优解的次数 89850bd07011faafb96c08918453c176 为了避免随机性的影响我们设置为2500轮,这可能需要较长的运行时间。 385ffe4802e0563aef957a9b8733bf7c 划分结果将会保存在submission文件夹中,是以最大社区数量-nums_initials_GNNs_configs-num_runs为命名的npy文件,我们在output_to_json.py文件中对该文件进行了转化,将其转化为符合提交格式的submission.json check_community.py是格式校验文件,可以在提交前进行格式检测

peoplecompetition's People

Contributors

superbia-x avatar

Watchers

 avatar

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.