HGDL Optimization
Project description
HGDL
HGDL is an API for HPC distributed constrained function optimization. At the core, the algorithm uses local and global optimization and bump-function-based deflation to provide a growing list of unique optima of a differentiable function. This tackles the common problem of non-uniquness of optimization problems, especially in machine learning.
Usage
The following demonstrates a simple usage of the HGDL API.
import numpy as np
from hgdl.hgdl import HGDL as hgdl
from hgdl.support_functions import *
import dask.distributed as distributed
bounds = np.array([[-500,500],[-500,500]])
#dask_client = distributed.Client("10.0.0.184:8786")
a = hgdl(schwefel, schwefel_gradient, bounds,
hess = schwefel_hessian,
global_optimizer = "genetic",
local_optimizer = "dNewton",
number_of_optima = 30000,
args = (1,1), radius = None, num_epochs = 100)
x0 = np.random.uniform(low = bounds[:, 0], high = bounds[:,1],size = (20,2))
a.optimize(x0 = x0)
###the thread is now released, but the work continues in the background
a.get_latest() ##prints the current result whenever queried
a.kill_client() ##stops the execution and returns the result
Credits
Main Developers: Marcus Noack (MarcusNoack@lbl.gov) and David Perryman. Several people from across the DOE national labs have given insights that led to the code in its current form. See AUTHORS for more details on that. HGDL is based on the HGDN algorithm by Noack and Funke.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file hgdl-2.0.4.tar.gz
.
File metadata
- Download URL: hgdl-2.0.4.tar.gz
- Upload date:
- Size: 34.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2c1c1e940233f7ed52ee95f2fca1fbf6934100d7e2277d22373a8288173e096 |
|
MD5 | f924481ec4eae68be1e14664fb271610 |
|
BLAKE2b-256 | cb9aada342baaebc2f70664c08daf1c7b800ecbfd5bd6dc22f225036e986776c |
File details
Details for the file hgdl-2.0.4-py3-none-any.whl
.
File metadata
- Download URL: hgdl-2.0.4-py3-none-any.whl
- Upload date:
- Size: 19.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 503ceca04c7246f60389307550d08f1c98bb37375450fe650f3a1294036c100a |
|
MD5 | 96f271e11505be0231f20abfebe97766 |
|
BLAKE2b-256 | 88f6b351daf6a3c8a5bad44504965b4f2605b7b945db23eed8a8e5cb7921fb32 |