def test_evolution(): currentEpoch = Epoch(TEST_STARTING_EPOCH) last_epoch = TEST_ENDING_EPOCH i = 0 while currentEpoch.ep < last_epoch: print 'Generating crowd evolution for: ', str(currentEpoch) Evolution.buildCrowdEvolutionGraph(currentEpoch) currentEpoch = currentEpoch.next()
def test_mcl(): currentEpoch = Epoch(TEST_STARTING_EPOCH) last_epoch = TEST_ENDING_EPOCH while currentEpoch.ep < last_epoch: print 'Generating crowds for: ', str(currentEpoch) mcl = MCL(currentEpoch, I=[1.4]) mcl.writeClusters() currentEpoch = currentEpoch.next()
def test_mcl(): currentEpoch = Epoch(TEST_STARTING_EPOCH) last_epoch = TEST_ENDING_EPOCH while currentEpoch.ep < last_epoch: print 'Generating crowds for: ', str(currentEpoch) mcl = MCL(currentEpoch, I = [1.4]) mcl.writeClusters() currentEpoch = currentEpoch.next()
def test_graphReader(): currentEpoch = Epoch(TEST_STARTING_EPOCH) last_epoch = TEST_ENDING_EPOCH while currentEpoch.ep < last_epoch: print 'Creating graph for: ', str(currentEpoch) gr = GraphReader(currentEpoch, decayCoefficient = 1.0, writeGraph = True) gr.buildCurrentGraph() currentEpoch = currentEpoch.next()
def test_graphReader(): currentEpoch = Epoch(TEST_STARTING_EPOCH) last_epoch = TEST_ENDING_EPOCH while currentEpoch.ep < last_epoch: print 'Creating graph for: ', str(currentEpoch) gr = GraphReader(currentEpoch, decayCoefficient=1.0, writeGraph=True) gr.buildCurrentGraph() currentEpoch = currentEpoch.next()