Skip to main content

LightningBO

LightningBOは、ベイズ最適化(Bayesian Optimization)を簡単に実装・拡張できるPythonライブラリです。 本ライブラリは、ブラックボックス関数の最適化やハイパーパラメータ探索など、試行回数を抑えつつ効率的に最適解を見つけたい場面で活用できます。

特徴

  • JAXベースの高速な計算
  • 連続・離散パラメータ両対応
  • 期待値改善(EI)などの獲得関数
  • 拡張性の高い設計

使い方例

import LightningBO.bayesian_optimization as bo
import LightningBO.bayesian_core as bc

# 最適化したい関数
def f(x):
	return x**2 - 4*x + 5

# 探索空間の定義
domain = {"x": bc.Continuous(-10, 10)}

# Optimizerの作成
optimizer = bo.Optimizer(domain=domain, maximize=False)

# 初期点
params = {"x": [0.0, 2.0, 5.0]}
ys = [f(x) for x in params["x"]]
state = optimizer.init(ys, params)

# 最適化ループ
for step in range(20):
	new_params = optimizer.sample(None, state)
	y = f(**new_params)
	state = optimizer.fit(state, y, new_params)

print("最適値:", state.best_score)
print("最適パラメータ:", state.best_params)

主な用途

  • 機械学習モデルのハイパーパラメータ最適化
  • 実験・シミュレーションのパラメータ探索
  • その他ブラックボックス関数の最適化

Metadata

Release files for LightningBO 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for LightningBO 0.1.2
File Size Uploaded Provenance
lightningbo-0.1.2.tar.gz 14.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for LightningBO 0.1.2
File Interpreter ABI Platform
lightningbo-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 29.2 kB

Release files / lightningbo-0.1.2.tar.gz

Download URL lightningbo-0.1.2.tar.gz
Size 14.6 kB
Tags Source
SHA-256 checksum
How to use checksums
1aa0a2d36c9f38716af89dee72bdb3a8f5bf3a455e4705cecf96f576ef40ade1
BLAKE2b-256 checksum
How to use checksums
8cc567aa62223ea5bf83d7028fd076cf2df8bbd1e899fc98896868e3cfa8b54a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.11

Release files / lightningbo-0.1.2-py3-none-any.whl

Download URL lightningbo-0.1.2-py3-none-any.whl
Size 14.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
022e9134f190d56794a0405755fd4d3172abbdb9de349d21d2a521a33892a044
BLAKE2b-256 checksum
How to use checksums
1d072509b9134ee0b42787388babef9aaefff6a1aa10ead531411e7eee9e1feb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.11

Security for LightningBO 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page