Biologically-Inspired and Machine Learning Algorithms written in Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.



BioPy is a collection (in-progress) of biologically-inspired algorithms written in Python. Some of the algorithms included are more focused on artificial model's of biological computation, such as Hopfield Neural Networks, while others are inherently more biologically-focused, such as the basic genetic programming module included in this project. Use it for whatever you like, and please contribute back to the project by cleaning up code that is here or contributing new code for applications in biology that you may find interesting to program.

NOTE: The code is currently messy in some places. If you want to make a Pull Request by tidying up the code, that would certainly be merged. Since most of this was written while in the middle of our (jaredmichaelsmith and davpcunn) Graduate Bio-Inspired computation course, there are some places where the code has diverged into a dark chasm of non-pythonic mess, despite the algorithms still performing very well. Contributions in this area are much appreciated!


  • NumPy
  • SciPy
  • Scikit-Learn
  • Matplotlib


Below you will find several categories of applications in this project.

#####Neural Networks:

  • Hopfield Neural Network
  • Back Propagation Neural Network

#####Genetic Programming:

  • Basic Genetic Computation Algorithm
    • Features:
      • "drag-n-drop" fitness functions
      • crossover and mutation of genes
      • learning ability for offspring of each generation

#####Self-Organization and Autonomous Agents

  • Particle Swarm Optimization
    • Features:
      • You can configure many of the parameters of the algorithm such as the velocity, acceleration, and number of initial particles, as well as several other parameters.