HGDL Optimization
Project description
HGDL
HGDL is an API for HPC distributed 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 differetniable functions. 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 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 = "random",
global_optimizer = "genetic",
#global_optimizer = "gauss",
local_optimizer = "dNewton",
number_of_optima = 30000, info = True,
args = (arr,brr), radius = None, num_epochs = 100)
x0 = np.random.uniform(low = bounds[:, 0], high = bounds[:,1],size = (20,2))
a.optimize(x0 = x0)
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.0.tar.gz
.
File metadata
- Download URL: hgdl-2.0.0.tar.gz
- Upload date:
- Size: 34.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e601a6c1f3f1418390cce69a5e3093b8041d40e35611513201b4feb90db3aff2 |
|
MD5 | fad1060f3effcf664c747ce8d5dbf642 |
|
BLAKE2b-256 | 84781f2bab22d4c917a3541c13d399190f7fa382cd3bd7d244e1187745f2a24e |
File details
Details for the file hgdl-2.0.0-py3-none-any.whl
.
File metadata
- Download URL: hgdl-2.0.0-py3-none-any.whl
- Upload date:
- Size: 19.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f9df714f5522ea9e18eb6c08241698e95b00f59b0fe41241ff01554044bac7c |
|
MD5 | a26ec6ed0ee574ee0f2ee0421e78d939 |
|
BLAKE2b-256 | 2363a756fd3e13e3094f8cf99bf05676aa8f33f9e7c3675e2d470a02ee14efc6 |