Git Product home page Git Product logo

fl-sim's People

Contributors

prosopher avatar yoojushin avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

Forkers

ss-yoon

fl-sim's Issues

assert failure in fl_data when numNodes=50 and numEdges=10

@YoojuShin

when numNodes=50 and numEdges=10
fl_data.groupByNode is ok
fl_data.groupByEdge(trainData_by1Nid, 't', 'q', NUM_NODES, NUM_EDGES) gets the following error

50 10 5.00 5.70 6.20 <class 'numpy.ndarray'> <class 'numpy.float32'> <class 'numpy.int32'>
50 10 5.00 6.20 15.60 <class 'numpy.ndarray'> <class 'numpy.float32'> <class 'numpy.int32'>

IndexError Traceback (most recent call last)
in
31 assert_groupByEdge(trainData_byNid, train_z, NUM_NODES, NUM_EDGES, NUM_NODES_PER_EDGE, numTotalClasses/10, numTotalClasses/4)
32
---> 33 (trainData_byNid, train_z) = fl_data.groupByEdge(trainData_by1Nid, 't', 'h', NUM_NODES, NUM_EDGES)
34 assert_groupByEdge(trainData_byNid, train_z, NUM_NODES, NUM_EDGES, NUM_NODES_PER_EDGE, numTotalClasses/10, numTotalClasses/2)
35

~/FL-Sim/fl_data.py in groupByEdge(data_by1Nid, nodeType, edgeType, numNodes, numEdges)
296 num_allocated_nodes = 0
297 while(len(class_left) != 0): # check whether all class are sampled at least once in the nodes for an edge
--> 298 if NUM_CLASS_NODE_SAMPLED[num_allocated_nodes] > len(class_left):
299 class_list = list(class_left)
300 class_left_complement_list = list(set(edge_class_list).difference(class_left))

IndexError: list index out of range

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.