TensorCRO: A Tensorflow-based implementation of the Coral Reef Optimization algorithm.
Table of contents
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
- First release.
- CRO-SL: Coral Reef Optimization algorithm with substrate layers.
- GPU runnable: The algorithm can be run in GPU and TPU as a graph, with +``x2` speed-up over the conventional implementations.
- Substrate crossovers: The framework allows to implement crossover operators as blxalpha, gaussian, uniform, masked and multipoint.
- Algorithms: The framework allows to implement algorithms as substrate layers such as Differential Evolution, Harmony Search and Random Search.
- Watch Replay: The algorithm also allows to watch the replay of the solutions found in the training process, with an interactive GUI.
- Jupyter Notebook: The framework includes a Jupyter Notebook with example of use for the Max-Ones-From-Zeros problem.
1.2.0
- Progress bar: The framework now also includes a progress bar to monitor the training process.
- Minor bug fixing.
- Jupyter Notebook: The framework includes a Jupyter Notebook with example of use for the Max-Ones-From-Zeros problem.
1.2.1
- Major bug fixing.
- Auto-format of parameter specs.
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.2.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
- CUDA for GPU support (optional but strongly recommended)
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}
}
Metadata
Release files for tensorcro 1.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| tensorcro-1.2.1.tar.gz | 16.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tensorcro-1.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 37.3 kB
Release files / tensorcro-1.2.1.tar.gz
| Download URL | tensorcro-1.2.1.tar.gz |
|---|---|
| Size | 16.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fec1ba303643c9809df2e0a850cf3370647b65d4fdd3e28191bfc7fe9844d731
|
|
BLAKE2b-256 checksum How to use checksums |
a8234b43a69bd7aaa86eeabb294b381ffa73ff81d526b8335760b5c0d8a5e165
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|
Release files / tensorcro-1.2.1-py3-none-any.whl
| Download URL | tensorcro-1.2.1-py3-none-any.whl |
|---|---|
| Size | 21.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d596f3dfc995101226f6b6d2186fd39f005362bf34c844708fcf98c0621b243b
|
|
BLAKE2b-256 checksum How to use checksums |
93321e4518652e240b94e14009c22a9d4fe71d12270ca6bdb41caef2fcc97218
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|
Security for tensorcro 1.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.