Advisor is the hyper parameters tuning system for black box optimization.
It is the open-source implementation of Google Vizier with the features.
- Get suggestions from API, WEB or CLI
- Support abstractions of Study and Trial
- Included search and early stop algorithms
- Recommend parameters with trained model
- Same programming interfaces as Google Vizier
- Random Search Algorithm
- 2x Random Search Algorithm
- Grid Search Algorithm
- Baysian Optimization
- Gaussian Process Bandit
- Batched Gaussian Process Bandits
- SMAC Algorithm
- CMA-ES Algorithm
- No Early Stop Algorithm
- Early Stop First Trial Algorithm
- Early Stop Descending Algorithm
- Performance Curve Stop Algorithm
- Median Stop Algorithm
Run the advisor server.
pip install -r ./requirements.txt
./manage.py runserver 0.0.0.0:8000
Open http://127.0.0.1:8000
in the browser.
Install with pip
.
pip install advisor_client
Run with Python SDK.
client = AdvisorClient()
# Create the study
study_configuration = {
"goal": "MAXIMIZE",
"maxTrials": 5,
"maxParallelTrials": 1,
"params": [
{
"parameterName": "hidden1",
"type": "INTEGER",
"minValue": 40,
"maxValue": 400,
"scallingType": "LINEAR"
}
]
}
study = client.create_study("Study", study_configuration)
# Get suggested trials
trials = client.get_suggestions(study, 3)
# Complete the trial
client.complete_trial(trial, trial_metrics)
Run with command-line tool.
advisor study list
advisor trial list --study_id 1
List all the studies and create/delete the studies easily.
List the detail of study and all the related trials.
List all the trials and create/delete the trials easily.
List the detail of trial and all the related metrics.