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,
global_optimizer = "genetic",
local_optimizer = "dNewton", #put in local optimzers from scipy.optimize.minimize
number_of_optima = 30000,
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.1.7.tar.gz
.
File metadata
- Download URL: hgdl-2.1.7.tar.gz
- Upload date:
- Size: 15.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19883da1189d6d5e5a36f1bd6c632e58a0d714e9a62a13df6894812f5d9178a7 |
|
MD5 | 0e71fb18a21cd3a1dc039fc0d27cad63 |
|
BLAKE2b-256 | b15a6e150920b52cb2a96931ecfeefbd998a90a3302f1d4cfe90d5fb6fab8f01 |
File details
Details for the file hgdl-2.1.7-py3-none-any.whl
.
File metadata
- Download URL: hgdl-2.1.7-py3-none-any.whl
- Upload date:
- Size: 18.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa7ce14d89895850329ac6ee954f674e7c97b0defa438c5577e1aec80135fb17 |
|
MD5 | 89dfb8736d12a0d55e4223f4fe215566 |
|
BLAKE2b-256 | df20814b52554d767f6530c093c816903203ae3dd3bf4027c03a418c8eafc545 |