Skip to main content

Neural network surrogate hyperparameter optimization via a simple decorator

Project description

mloopforml

Neural network surrogate hyperparameter optimization via a simple decorator.

import mloopforml as mloop

@mloop.optimize(params={"lr": (0.001, 0.1)}, max_iterations=30, direction="maximize")
def train(lr):
    # your model training here
    return accuracy

result = train()
print(result.best_params, result.best_score)

Install

pip install mloopforml

Requirements

  • Python >=3.11
  • numpy >=2.0
  • scipy >=1.15

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

mloopforml-0.1.0.tar.gz (30.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mloopforml-0.1.0-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file mloopforml-0.1.0.tar.gz.

File metadata

  • Download URL: mloopforml-0.1.0.tar.gz
  • Upload date:
  • Size: 30.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mloopforml-0.1.0.tar.gz
Algorithm Hash digest
SHA256 08a04ccd5607674fce841a920b339befe9f7850b7100fe6a2aaa682aa5be0a0a
MD5 74ec8126b1f7133d39b7c737adb67421
BLAKE2b-256 3a35f14e1aee705d54a645ec258f21fc1183faba05c860bd837a7a45fd65b2cd

See more details on using hashes here.

Provenance

The following attestation bundles were made for mloopforml-0.1.0.tar.gz:

Publisher: publish-to-pypi.yml on emv-dev/mloopforml

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mloopforml-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: mloopforml-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mloopforml-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6831a4f78b6612b068d0bdb7f30352522d002d768e4213c900c65710f0b14295
MD5 4a69bda54c095195d14009f05c559c4c
BLAKE2b-256 d2ce716945bea0eb3923c343ad5ebbc41127cd1c89fb5c4f6c94ed8714637c78

See more details on using hashes here.

Provenance

The following attestation bundles were made for mloopforml-0.1.0-py3-none-any.whl:

Publisher: publish-to-pypi.yml on emv-dev/mloopforml

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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