Does one thing
Project description
embarrassingly
parallel
Example
from embarrassingly.parallel import Parallel
import optuna
def pre_objective(worker, trial):
print('Hi this is worker ' + str(worker))
x = [trial.suggest_float('x' + str(i), 0, 1) for i in range(3)]
return x[0] + x[1] * x[2]
def test_optuna():
objective = Parallel(pre_objective, num_workers=7)
study = optuna.create_study()
study.optimize(objective, n_trials=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
embarrassingly-0.0.3.tar.gz
(2.2 kB
view details)
Built Distribution
File details
Details for the file embarrassingly-0.0.3.tar.gz
.
File metadata
- Download URL: embarrassingly-0.0.3.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b61f7cd7dce187144b137c9a681af4e84a9bbc9060bcf1f1a514c53e3a14863 |
|
MD5 | 9a5270f87f054d7d2a9404729a725333 |
|
BLAKE2b-256 | 6092025343bc8e29b7eaee2984e24d88f2b23f579a57b20af13d7fd8afe8c063 |
File details
Details for the file embarrassingly-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: embarrassingly-0.0.3-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2a5776fefee874a3585738fe135daef9b1d0ed61bcc4abd132b1642494e7f8d |
|
MD5 | fb42b97f7c2d4093de0ca18ca0b87641 |
|
BLAKE2b-256 | 8fc6d8fadd31f8e110c5e8525e0e75f52dd0756b21cec59bbed435ef81953c68 |