This release is a pre-release and may not be stable for production use.
Honeybee
An artificial bee colony implementation in Python
Installation
To install with pip:
pip install honeybee
Usage
To use, first install the package as above, then define a function that you wish to optimize. This can be a simple mathematical formula, or something that calls a complicated model training routine. The important thing is that it depends on hyperparameters that can be passed to the function, and returns a fitness measure that will be maximized by the algorithm:
def my_func(**params):
""" Implements Rastrigin's function of two inputs. """
x = [v for v in params.values()]
return 20 + sum([a**2 - 10*cos(2*np.pi*a) for a in x])
Next define the ranges of parameters over which you wish to optimize:
params = {'x1': (-5.12, 5.12),
'x2': (-5.12, 5.12)}
Finally, initialize the colony and fit the objective function:
my_colony = Colony(my_func, params, num_bees=10)
my_colony.fit()
Metadata
Release files for honeybee 0.1.0a4
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 | Actions |
|---|---|---|---|---|
| honeybee-0.1.0a4.tar.gz | 4.0 kB | Without provenance | Details for honeybee-0.1.0a4.tar.gz |
Release files / honeybee-0.1.0a4.tar.gz
| Download URL | honeybee-0.1.0a4.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
81db0f4b3abbcf922b8d3e652befd7239fcaa54deda1b0a4eadf6147cce3a39a
|
|
BLAKE2b-256 checksum How to use checksums |
0794f3c27ddff61ec3dc4a51e202b42e48a1f280d706f8dd5072fe530add0485
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3
|
Security for honeybee 0.1.0a4
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.