Multiply EGO
EGO (Efficient global optimization) and multiply target EGO method.
References: Jones, D. R., Schonlau, M. & Welch, W. J. Efficient global optimization of expensive black-box functions. J. Global Optim. 13, 455–492 (1998)
Install
pip install multiego
Usage
if __name__ == "__main__":
from sklearn.datasets import fetch_california_housing
import numpy as np
from multiego.ego import search_space, Ego
from sklearn.model_selection import GridSearchCV
from sklearn.svm import SVR
#####model1#####
model = SVR() #pre-trained good model with optimized prarmeters for special features
###
X, y = fetch_california_housing(return_X_y=True)
X = X[:, :5]
searchspace_list = [
np.arange(0.01, 1, 0.1),
np.array([0, 20, 30, 50, 70, 90]),
np.arange(1, 10, 1),
np.array([0, 1]),
np.arange(0.4, 0.6, 0.02),
]
searchspace = search_space(*searchspace_list)
#
me = Ego(searchspace, X, y, 500, model, n_jobs=6)
re = me.egosearch()
Introduction
For sklean-type single model.
- For any user-defined single model, just need offer mean and std of search space.
- For big search space out of memory , just need offer mean and std of search space.
For sklean-type models.
multiego.base_multiplyego.BaseMultiEgo
- For any user-defined models, just need offer predict_y of search space.
- For big search space out of memory, just need offer predict_y of search space.
link
More examples can be found in test.
More powerful can be found mipego
Metadata
Release files for multiego 0.0.15
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| multiego-0.0.15.tar.gz | 14.5 kB | Without provenance | Details for multiego-0.0.15.tar.gz |
Release files / multiego-0.0.15.tar.gz
| Download URL | multiego-0.0.15.tar.gz |
|---|---|
| Size | 14.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
32dca1af119f75934a9cab4de204ed172d94ffce1d90175e233e859faa861461
|
|
BLAKE2b-256 checksum How to use checksums |
931a4958391a3b271b9de5cb1def946cf2823110e868dcf165091a37adc72265
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.12
|
Security for multiego 0.0.15
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.