This release is a pre-release and may not be stable for production use.
L2L Gradient-free Optimization Framework
About
The L2L (Learning-to-learn) gradient-free optimization framework contains well documented and tested implementations of various gradient free optimization algorithms. It also defines an API that makes it easy to optimize (hyper-)parameters for any task (optimizee). All the implementations in this package are parallel and can run across different cores and nodes (but equally well on a single core).
NOTE: The L2L framework is currently in BETA
Getting Started
If you are developing a new Optimizee or want to try out a new Optimizee with the Optimizers in the L2L package, install L2L as a python package. See section Installing the L2L Package for details on how to install the package (this automatically installs all requirements).
Documentation is available at https://meta-optimizationl2l.readthedocs.io/en/latest/.
Installing the L2L Package
From the Top-Level directory of the directory, run the following command:
python -m pip install -e .
or alternatively (if you do not use a virtual environment)
python -m pip install -e . –user
The –user flag is to be used if you wish to install in the user path as opposed to the root path. However, we recommend to use a virtual enviornment, such as the standard Python env or conda env.
The above will install the package by creating symlinks to the code files in the relevant directory containing python modules. This means that you can change any of the code files and see the changes reflected in the package immediately (i.e. without requiring a reinstall). In order to uninstall one may run the following:
pip uninstall L2L
Note that if the setup was done using sudo access, then the uninstall must also be done using sudo access
Having installed this package, we now have access to the top level l2l module which contains all the relevant modules relevant for using the l2l package.
This should also install the sphinx package which should now enable you to build the documentation as specified below.
Building Documentation
Run the following command from the doc directory
make html
And open the documentation with
firefox _build/html/index.html
All further (and extensive) documentation is in the html documentation!
Invoking the tests
To run the tests go to the folder l2l/tests and execute:
python test_all.py
If the package nosetests is installed run on the top folder (L2L):
nosetests -v –with-coverage –cover-package=l2l/
Contributing to L2L
By contributing to this code you confirm that you understand that L2L follows an open development approach and is distributed under a GPL-3.0 license. This means you have also made sure that all your contributed code meets the requirements detailed in the contributing guidelines and does not breach the license of any other library or source of code.
Metadata
Release files for L2LforHPC 2.0.0b0
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 |
|---|---|---|---|---|
| l2lforhpc-2.0.0b0.tar.gz | 92.0 kB | Without provenance | Details for l2lforhpc-2.0.0b0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| l2lforhpc-2.0.0b0-py3-none-any.whl | Python 3 | none | any | Details for l2lforhpc-2.0.0b0-py3-none-any.whl |
Total release size: 217.1 kB
Release files / l2lforhpc-2.0.0b0.tar.gz
| Download URL | l2lforhpc-2.0.0b0.tar.gz |
|---|---|
| Size | 92.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c12aae5edd73d323dc842b87408c2276b7c4df421e84cb1b26960578e2dee06c
|
|
BLAKE2b-256 checksum How to use checksums |
0dd22f2a233548a529e1e276db89617af5e5d1060930f29f77488ed0885556c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / l2lforhpc-2.0.0b0-py3-none-any.whl
| Download URL | l2lforhpc-2.0.0b0-py3-none-any.whl |
|---|---|
| Size | 125.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9c80c0c3ebb7bacafd8589a5bd38f691222c2d76bf8973480fa71f4720d1e81c
|
|
BLAKE2b-256 checksum How to use checksums |
d5bf1a5c9680b6ea87c53502c5e74415dc968e66ce0221e1b9d25f970fd7bf6c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Security for L2LforHPC 2.0.0b0
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.