Skip to main content

HGDL Optimization

Project description

HGDL

PyPI Documentation Status HGDL CI Codecov PyPI - License DOI

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hgdl-2.0.3.tar.gz (34.9 kB view details)

Uploaded Source

Built Distribution

hgdl-2.0.3-py3-none-any.whl (19.6 kB view details)

Uploaded Python 3

File details

Details for the file hgdl-2.0.3.tar.gz.

File metadata

  • Download URL: hgdl-2.0.3.tar.gz
  • Upload date:
  • Size: 34.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.14

File hashes

Hashes for hgdl-2.0.3.tar.gz
Algorithm Hash digest
SHA256 1c72a55fd1b5911c1e22789553f15b4c9e3b22c93d580e52387b1720ce8f54e4
MD5 d0ed5ee3bff545ae8c87d4d91ff30a5a
BLAKE2b-256 a215851b418c8d4136f156beb2d5ec375aa48b2825eb641d058d607f77a271e1

See more details on using hashes here.

File details

Details for the file hgdl-2.0.3-py3-none-any.whl.

File metadata

  • Download URL: hgdl-2.0.3-py3-none-any.whl
  • Upload date:
  • Size: 19.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.14

File hashes

Hashes for hgdl-2.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 03ac52f1c269c8ff3bd351a07a5809b0b219780b35e74f79398c24aad8bb9fd2
MD5 6d5398dd7a92f731e4dc4145a9814078
BLAKE2b-256 12c4255b66eacafd265859d87ffc902121540af2bf349218a9ec36f4cd7439e4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page