inspyred

A framework for creating bio-inspired computational intelligence algorithms in Python
Download

inspyred Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL v3
  • Price:
  • FREE
  • Publisher Name:
  • Aaron Garrett
  • Publisher web site:
  • http://code.google.com/u/aaron.lee.garrett/

inspyred Tags


inspyred Description

inspyred is a free and open source Python framework for creating biologically-inspired computational intelligence algorithms in Python, including evolutionary computation, swarm intelligence, and immunocomputing. Additionally, inspyred provides easy-to-use canonical versions of many bio-inspired algorithms for users who don't need much customization.ExampleThe following example illustrates the basics of the ECsPy package. In this example, candidate solutions are 10-bit binary strings whose decimal values should be maximized:import randomimport timeimport inspyreddef generate_binary(random, args): bits = args.get('num_bits', 8) return ) for i in range(bits)]@inspyred.ec.evaluators.evaluatordef evaluate_binary(candidate, args): return int("".join(), 2)rand = random.Random()rand.seed(int(time.time()))ga = inspyred.ec.GA(rand)ga.observer = inspyred.ec.observers.stats_observerga.terminator = inspyred.ec.terminators.evaluation_terminationfinal_pop = ga.evolve(evaluator=evaluate_binary, generator=generate_binary, max_evaluations=1000, num_elites=1, pop_size=100, num_bits=10)final_pop.sort(reverse=True)for ind in final_pop: print(str(ind))Product's homepage


inspyred Related Software