Skip to main content

TensorCRO: A Tensorflow-based implementation of the Coral Reef Optimization algorithm.

Project description

TensorCRO: A Tensorflow-based implementation of the Coral Reef Optimization algorithm.

Table of contents

  1. About
  2. What's new?
  3. Install
  4. Usage

About

Implementation author:     A.Palomo-Alonso (alberto.palomo@uah.es) 
Original Algorithm author: S.Salcedo-Sanz  (sancho.salcedo@uah.es)
Universidad de Alcalá (Madrid - Spain). Escuela Politécnica Superior
Signal Processing and Communications Department (TDSC)

This is a Tensorflow-based implementation of the Coral Reef Optimization algorithm. The algorithm is implemented as a Tensorflow graph, which allows to run it in GPU and TPU. The algorithm is implemented as a set of substrate layers that can be combined with other algorithms such as Differential Evolution, Harmony Search and Random Search. The framework also allows to implement crossover operators as blxalpha, gaussian, uniform, masked and multipoint.

The framework also includes a Jupyter Notebook with an example of use of the algorithm.

What's new?

1.0.0

  1. First release.
  2. CRO-SL: Coral Reef Optimization algorithm with substrate layers.
  3. GPU runnable: The algorithm can be run in GPU and TPU as a graph, with +``x2` speed-up over the conventional implementations.
  4. Substrate crossovers: The framework allows to implement crossover operators as blxalpha, gaussian, uniform, masked and multipoint.
  5. Algorithms: The framework allows to implement algorithms as substrate layers such as Differential Evolution, Harmony Search and Random Search.
  6. Watch Replay: The algorithm also allows to watch the replay of the solutions found in the training process, with an interactive GUI.
  7. Jupyter Notebook: The framework includes a Jupyter Notebook with example of use for the Max-Ones-From-Zeros problem.

1.1.2

  1. Progress bar: The framework now also includes a progress bar to monitor the training process.

Install

To install it you must install the dependencies. Then, you can install the package with the following command using PIP:

pip install tensorcro

Or you can clone the repository and install it with the following commands using Git:

git clone https://github.com.iTzAlver/TensorCRO.git
cd TensorCRO/dist/
pip install ./tensorcro-1.0.0-py3-none-any.whl

Requirements

  • Python 3.6 or higher
  • Tensorflow 2.0 or higher
  • Numpy 1.18.1 or higher
  • Matplotlib 3.1.3 or higher
  • Pandas 1.0.1 or higher

Usage:

We have a JuPyter Notebook with an example of use of the algorithm. You can find it in the folder /multimedia/notebooks of the repository.

Cite:

If you use this code, please cite the following paper:

@inproceedings{palomo2022tensorcro,
  title={TensorCRO: A Tensorflow-based implementation of the Coral Reef Optimization algorithm},
  author={Palomo-Alonso, A and Salcedo-Sanz, S},
  journal={arXiv preprint arXiv:X.Y},
  year={2022}
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tensorcro-1.1.2.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

tensorcro-1.1.2-py3-none-any.whl (19.0 kB view details)

Uploaded Python 3

File details

Details for the file tensorcro-1.1.2.tar.gz.

File metadata

  • Download URL: tensorcro-1.1.2.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for tensorcro-1.1.2.tar.gz
Algorithm Hash digest
SHA256 b57078b91dfaec7b3eff97f43d9b68f067c0886b10262d2eb1e5a299f59bf0f8
MD5 20e9cc9d6a564246e66023930b476cdc
BLAKE2b-256 9c8d1c4849428804bb6f58691f0633023aae78f5d440447f90494b8e5fc27a49

See more details on using hashes here.

File details

Details for the file tensorcro-1.1.2-py3-none-any.whl.

File metadata

  • Download URL: tensorcro-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 19.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for tensorcro-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 90621b2f6891e8ba9a6ed1d0e2ad9c0c76082926201cdb6b6e56bf4fa472ad42
MD5 b306254f348776fef9f93655aa99065b
BLAKE2b-256 9c2a7f2d7fb8b0d3f159722c2251393012a8295c46ede9e999165287f12aaa86

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page