inspyred

Python library for bio-inspired computational intelligence

https://github.com/aarongarrett/inspyred

Science Score: 10.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
    2 of 12 committers (16.7%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (11.3%) to scientific vocabulary

Keywords from Contributors

closember
Last synced: 11 months ago · JSON representation

Repository

Python library for bio-inspired computational intelligence

Basic Info
  • Host: GitHub
  • Owner: aarongarrett
  • License: mit
  • Language: Python
  • Default Branch: master
  • Homepage:
  • Size: 2.94 MB
Statistics
  • Stars: 199
  • Watchers: 23
  • Forks: 59
  • Open Issues: 5
  • Releases: 1
Created over 14 years ago · Last pushed almost 2 years ago
Metadata Files
Readme Changelog Contributing License Authors

README.rst

======================================================================================================
``inspyred`` -- A framework for creating bio-inspired computational intelligence algorithms in Python.
======================================================================================================


.. image:: https://img.shields.io/pypi/v/inspyred.svg
        :target: https://pypi.python.org/pypi/inspyred
        :alt: PyPi

.. image:: https://github.com/aarongarrett/inspyred/actions/workflows/ci.yml/badge.svg
        :target: https://github.com/aarongarrett/inspyred/actions/workflows/ci.yml
        :alt: GitHub Actions

.. image:: https://readthedocs.org/projects/inspyred/badge/?version=latest
        :target: https://inspyred.readthedocs.io/en/latest/?badge=latest
        :alt: Documentation Status

.. image:: https://img.shields.io/github/issues-pr/aarongarrett/inspyred
        :target: https://github.com/aarongarrett/inspyred/pulls
        :alt: PRs

.. image:: https://img.shields.io/github/issues/aarongarrett/inspyred
        :target: https://github.com/aarongarrett/inspyred/issues
        :alt: Issues


inspyred is a free, open source 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 do not need much customization.


Example
-------

The following example illustrates the basics of the inspyred package. In this
example, candidate solutions are 10-bit binary strings whose decimal values
should be maximized::

    import random
    import time
    import inspyred

    def generate_binary(random, args):
        bits = args.get('num_bits', 8)
        return [random.choice([0, 1]) for i in range(bits)]

    @inspyred.ec.evaluators.evaluator
    def evaluate_binary(candidate, args):
        return int("".join([str(c) for c in candidate]), 2)

    rand = random.Random()
    rand.seed(int(time.time()))
    ga = inspyred.ec.GA(rand)
    ga.observer = inspyred.ec.observers.stats_observer
    ga.terminator = inspyred.ec.terminators.evaluation_termination
    final_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))


Requirements
------------

  * Requires Python 3+.
  * Numpy and Matplotlib are required for several functions in ``ec.observers``.
  * Matplotlib is required for several functions in ``ec.analysis``.
  * Parallel Python (ppft) is required if ``ec.evaluators.parallel_evaluation_pp`` is used.

You can use the `all` extra to install inspyred with all the extra dependencies::

    pip install inspyred[all]

License
-------

This package is distributed under the MIT License. This license can be found
online at http://www.opensource.org/licenses/MIT.


Resources
---------

  * Homepage: http://aarongarrett.github.io/inspyred
  * Email: garrett@inspiredintelligence.io
  * Documentation: https://inspyred.readthedocs.io.

Citing
------
Garrett, A. (2012). inspyred (Version 1.0.1) [software]. Inspired Intelligence. Retrieved from https://github.com/aarongarrett/inspyred [accessed CURRENT DATE].

Features
--------

* TODO

Credits
---------

This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.

.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage

Owner

  • Name: Aaron Garrett
  • Login: aarongarrett
  • Kind: user
  • Company: Inspired Intelligence, LLC

GitHub Events

Total
  • Issues event: 2
  • Watch event: 8
  • Delete event: 2
  • Issue comment event: 5
  • Push event: 7
  • Pull request review event: 1
  • Pull request event: 7
  • Fork event: 1
  • Create event: 3
Last Year
  • Issues event: 2
  • Watch event: 8
  • Delete event: 2
  • Issue comment event: 5
  • Push event: 7
  • Pull request review event: 1
  • Pull request event: 7
  • Fork event: 1
  • Create event: 3

Committers

Last synced: over 2 years ago

All Time
  • Total Commits: 88
  • Total Committers: 12
  • Avg Commits per committer: 7.333
  • Development Distribution Score (DDS): 0.568
Past Year
  • Commits: 33
  • Committers: 2
  • Avg Commits per committer: 16.5
  • Development Distribution Score (DDS): 0.03
Top Committers
Name Email Commits
Ankur Sinha (Ankur Sinha Gmail) s****r@g****m 38
Aaron Garrett a****t@g****m 22
Aaron Garrett i****e@g****m 18
Julien Schueller s****r@p****m 2
albertotonda a****a@g****m 1
Eugenio Piasini e****i@u****k 1
Matthaus Woolard m****d@4****m 1
Richard C Gerkin r****1@g****g 1
Richard Gowers r****s@g****m 1
galaunay g****y@t****m 1
Kira m****1 1
Aaron Garrett a****t@j****u 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 17
  • Total pull requests: 24
  • Average time to close issues: almost 2 years
  • Average time to close pull requests: 3 months
  • Total issue authors: 14
  • Total pull request authors: 11
  • Average comments per issue: 3.0
  • Average comments per pull request: 0.79
  • Merged pull requests: 21
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 4
  • Average time to close issues: N/A
  • Average time to close pull requests: about 5 hours
  • Issue authors: 0
  • Pull request authors: 1
  • Average comments per issue: 0
  • Average comments per pull request: 1.5
  • Merged pull requests: 4
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • sanjayankur31 (4)
  • AlexPars (1)
  • andreaschandra (1)
  • saulshanabrook (1)
  • gedeck (1)
  • rat-h (1)
  • metakermit (1)
  • TsingQAQ (1)
  • NikoZHAI (1)
  • jbae11 (1)
  • markcoletti (1)
  • ThePseudo (1)
  • albertotonda (1)
  • JamesArruda (1)
Pull Request Authors
  • sanjayankur31 (16)
  • jschueller (2)
  • richardjgowers (1)
  • rat-h (1)
  • abbgrade (1)
  • epiasini (1)
  • mybaby101 (1)
  • hishnash (1)
  • galaunay (1)
  • albertotonda (1)
  • rgerkin (1)
Top Labels
Issue Labels
help wanted (7) enhancement (5) bug (4) question (1) documentation (1)
Pull Request Labels
enhancement (1) bug (1)

Packages

  • Total packages: 15
  • Total downloads:
    • pypi 2,888 last-month
  • Total docker downloads: 16
  • Total dependent packages: 3
    (may contain duplicates)
  • Total dependent repositories: 67
    (may contain duplicates)
  • Total versions: 27
  • Total maintainers: 3
pypi.org: inspyred

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

  • Versions: 4
  • Dependent Packages: 2
  • Dependent Repositories: 67
  • Downloads: 2,888 Last month
  • Docker Downloads: 16
Rankings
Dependent repos count: 1.8%
Docker downloads count: 3.0%
Dependent packages count: 3.2%
Average: 4.0%
Downloads: 5.1%
Stargazers count: 5.2%
Forks count: 5.5%
Maintainers (2)
Last synced: 11 months ago
alpine-v3.18: py3-inspyred

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

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Dependent packages count: 0.0%
Average: 7.9%
Forks count: 15.0%
Stargazers count: 16.6%
Maintainers (1)
Last synced: 11 months ago
alpine-v3.18: py3-inspyred-pyc

Precompiled Python bytecode for py3-inspyred

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Dependent packages count: 0.0%
Average: 7.9%
Forks count: 15.0%
Stargazers count: 16.6%
Maintainers (1)
Last synced: 11 months ago
alpine-edge: py3-inspyred

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

  • Versions: 6
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Average: 12.1%
Dependent packages count: 14.6%
Forks count: 15.8%
Stargazers count: 17.9%
Maintainers (1)
Last synced: 11 months ago
alpine-edge: py3-inspyred-pyc

Precompiled Python bytecode for py3-inspyred

  • Versions: 5
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Average: 12.2%
Dependent packages count: 14.3%
Forks count: 16.3%
Stargazers count: 18.5%
Maintainers (1)
Last synced: 11 months ago
alpine-v3.17: py3-inspyred

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

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Forks count: 13.7%
Average: 14.0%
Stargazers count: 15.1%
Dependent packages count: 27.3%
Maintainers (1)
Last synced: 11 months ago
conda-forge.org: inspyred
  • Versions: 1
  • Dependent Packages: 1
  • Dependent Repositories: 0
Rankings
Forks count: 22.2%
Stargazers count: 25.3%
Average: 27.6%
Dependent packages count: 28.8%
Dependent repos count: 34.0%
Last synced: 11 months ago
alpine-v3.19: py3-inspyred

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

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Dependent packages count: 0.0%
Average: 100%
Maintainers (1)
Last synced: 11 months ago
alpine-v3.22: py3-inspyred-pyc

Precompiled Python bytecode for py3-inspyred

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Dependent packages count: 0.0%
Average: 100%
Maintainers (1)
Last synced: 11 months ago
alpine-v3.21: py3-inspyred

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

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Dependent packages count: 0.0%
Average: 100%
Maintainers (1)
Last synced: 11 months ago
alpine-v3.20: py3-inspyred

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

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Dependent packages count: 0.0%
Average: 100%
Maintainers (1)
Last synced: 11 months ago
alpine-v3.20: py3-inspyred-pyc

Precompiled Python bytecode for py3-inspyred

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Dependent packages count: 0.0%
Average: 100%
Maintainers (1)
Last synced: 11 months ago
alpine-v3.21: py3-inspyred-pyc

Precompiled Python bytecode for py3-inspyred

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Dependent packages count: 0.0%
Average: 100%
Maintainers (1)
Last synced: 11 months ago
alpine-v3.19: py3-inspyred-pyc

Precompiled Python bytecode for py3-inspyred

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Dependent packages count: 0.0%
Average: 100%
Maintainers (1)
Last synced: 11 months ago
alpine-v3.22: py3-inspyred

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

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Dependent packages count: 0.0%
Average: 100%
Maintainers (1)
Last synced: 11 months ago

Dependencies

requirements_dev.txt pypi
  • PyYAML * development
  • Sphinx ==1.4.8 development
  • bumpversion * development
  • coverage * development
  • cryptography * development
  • flake8 * development
  • pip * development
  • pytest * development
  • tox * development
  • watchdog * development
  • wheel * development
.github/workflows/ci.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v4 composite
pyproject.toml pypi