You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
swarms/examples/multi_agent/election_swarm/swarm_statistics.py

16 lines
329 B

"""
ElectionSwarm Statistics Example
"""
import sys
import os
sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..', '..'))
from swarms.structs.election_swarm import ElectionSwarm
# Create election
election = ElectionSwarm(verbose=True)
# Get statistics
stats = election.get_election_statistics()