Coder Social home page Coder Social logo

zhenv5 / breaking_cycles_in_noisy_hierarchies Goto Github PK

View Code? Open in Web Editor NEW
72.0 3.0 23.0 9.05 MB

breaking cycles in noisy hierarchies

License: BSD 3-Clause "New" or "Revised" License

Makefile 0.51% C++ 14.37% C 25.10% Python 60.02%
trueskill socialagony graph-hierarchy break-cycles directed-acyclic-graph cycle-edges dag bfs dfs minimum-feedback-arc-set

breaking_cycles_in_noisy_hierarchies's Issues

License

Hey, is this code licensed for reuse :)?

Running break_cycles.py on my own edges data from command line and returning "could not find socialagony file"

I am getting the following error when I run the break_cycles.py from the command line.
The program directs to the social agony compute .py file, and changes the string to be of agony data rather than my data.

iLost:breaking_cycles_in_noisy_hierarchies-master home$ python break_cycles.py -g /Users/software/breaking_cycles_in_noisy_hierarchies-master/data/adjective-edgelist.edges dir name: /Users/software/breaking_cycles_in_noisy_hierarchies-master/data, file_name: adjective-edgelist.edges start computing socialagony... dir name: /Users/software/breaking_cycles_in_noisy_hierarchies-master/data, file_name: adjective-edgelist.edges running command: agony/agony /Users/software/breaking_cycles_in_noisy_hierarchies-master/data/adjective-edgelist.edges /Users/software/breaking_cycles_in_noisy_hierarchies-master/data/adjective-edgelist_socialagony.txt agony/agony /Users/software/breaking_cycles_in_noisy_hierarchies-master/data/adjective-edgelist.edges /Users/software/breaking_cycles_in_noisy_hierarchies-master/data/adjective-edgelist_socialagony.txt /bin/sh: agony/agony: cannot execute binary file time used in computing social agony: 0.0000 s ====compute agony done===== Traceback (most recent call last): File "break_cycles.py", line 35, in <module> break_cycles(args.graph_file,args.gt_edges_file,args.method,nodetype = int) File "break_cycles.py", line 23, in break_cycles evaluation(graph_file,extra_edges_file,algorithm,nodetype = nodetype) File "break_cycles.py", line 14, in evaluation breaking_cycles_by_hierarchy_performance(graph_file,gt_edges_file,method,nodetype = nodetype) File "/Users/software/breaking_cycles_in_noisy_hierarchies-master/remove_cycle_edges_by_hierarchy.py", line 114, in breaking_cycles_by_hierarchy_performance players_score_dict = computing_hierarchy(graph_file,"socialagony",nodetype = nodetype) File "/Users/software/breaking_cycles_in_noisy_hierarchies-master/remove_cycle_edges_by_hierarchy.py", line 59, in computing_hierarchy players = compute_social_agony(graph_file,agony_path = "agony/agony ") File "/Users/software/breaking_cycles_in_noisy_hierarchies-master/compute_social_agony.py", line 23, in compute_social_agony agony_score = read_dict_from_file(output) File "/Users/software/breaking_cycles_in_noisy_hierarchies-master/file_io.py", line 72, in read_dict_from_file input_file = open(file_name,"r") FileNotFoundError: [Errno 2] No such file or directory: '/Users/software/breaking_cycles_in_noisy_hierarchies-master/data/adjective-edgelist_socialagony.txt'

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.