Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Creating a new version: 0.4 #30

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,6 @@ coverage.xml

# Translations
*.mo

# model saves
results/
11 changes: 8 additions & 3 deletions benchmarks/branin/benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,14 @@ def run(results_dir, n_calls=200, n_runs=10):
checkpoint = load_results(directory)

hyperdrive(
branin, bounds, directory, n_iterations=n_calls,
verbose=True, random_state=random_state,
checkpoints=True, restart=checkpoint
branin,
bounds,
directory,
model,
n_iterations=n_calls,
verbose=True,
random_state=random_state,
checkpoints_path=directory
)


Expand Down
Binary file removed benchmarks/branin/results/GBRT/run0/hyperspace00
Binary file not shown.
Binary file removed benchmarks/branin/results/GBRT/run0/hyperspace03
Binary file not shown.
Binary file removed benchmarks/branin/results/GBRT/run1/hyperspace00
Binary file not shown.
Binary file removed benchmarks/branin/results/GBRT/run1/hyperspace03
Binary file not shown.
Binary file removed benchmarks/branin/results/GBRT/run2/hyperspace00
Binary file not shown.
Binary file removed benchmarks/branin/results/GBRT/run2/hyperspace03
Binary file not shown.
Binary file removed benchmarks/branin/results/GBRT/run3/hyperspace00
Binary file not shown.
Binary file removed benchmarks/branin/results/GBRT/run3/hyperspace03
Binary file not shown.
Binary file removed benchmarks/branin/results/GBRT/run4/hyperspace00
Binary file not shown.
Binary file removed benchmarks/branin/results/GBRT/run4/hyperspace03
Binary file not shown.
Binary file removed benchmarks/branin/results/GP/run0/hyperspace00
Binary file not shown.
Binary file removed benchmarks/branin/results/GP/run0/hyperspace01
Binary file not shown.
Binary file removed benchmarks/branin/results/GP/run0/hyperspace02
Binary file not shown.
Binary file removed benchmarks/branin/results/GP/run0/hyperspace03
Binary file not shown.
Binary file removed benchmarks/branin/results/GP/run1/hyperspace00
Binary file not shown.
Binary file removed benchmarks/branin/results/GP/run1/hyperspace01
Binary file not shown.
Binary file removed benchmarks/branin/results/GP/run1/hyperspace02
Binary file not shown.
Binary file removed benchmarks/branin/results/GP/run1/hyperspace03
Binary file not shown.
Binary file removed benchmarks/branin/results/GP/run2/hyperspace00
Binary file not shown.
Binary file removed benchmarks/branin/results/GP/run2/hyperspace01
Binary file not shown.
Binary file removed benchmarks/branin/results/GP/run2/hyperspace02
Binary file not shown.
Binary file removed benchmarks/branin/results/GP/run2/hyperspace03
Binary file not shown.
Binary file removed benchmarks/branin/results/GP/run3/hyperspace00
Binary file not shown.
Binary file removed benchmarks/branin/results/GP/run3/hyperspace01
Binary file not shown.
Binary file removed benchmarks/branin/results/GP/run3/hyperspace02
Binary file not shown.
Binary file removed benchmarks/branin/results/GP/run3/hyperspace03
Binary file not shown.
Binary file removed benchmarks/branin/results/GP/run4/hyperspace00
Binary file not shown.
Binary file removed benchmarks/branin/results/GP/run4/hyperspace01
Binary file not shown.
Binary file removed benchmarks/branin/results/GP/run4/hyperspace02
Binary file not shown.
Binary file removed benchmarks/branin/results/GP/run4/hyperspace03
Binary file not shown.
Binary file removed benchmarks/branin/results/RF/run0/hyperspace00
Binary file not shown.
Binary file removed benchmarks/branin/results/RF/run0/hyperspace01
Binary file not shown.
Binary file removed benchmarks/branin/results/RF/run0/hyperspace02
Binary file not shown.
Binary file removed benchmarks/branin/results/RF/run0/hyperspace03
Binary file not shown.
Binary file removed benchmarks/branin/results/RF/run1/hyperspace00
Binary file not shown.
Binary file removed benchmarks/branin/results/RF/run1/hyperspace01
Binary file not shown.
Binary file removed benchmarks/branin/results/RF/run1/hyperspace02
Binary file not shown.
Binary file removed benchmarks/branin/results/RF/run1/hyperspace03
Binary file not shown.
Binary file removed benchmarks/branin/results/RF/run2/hyperspace00
Binary file not shown.
Binary file removed benchmarks/branin/results/RF/run2/hyperspace01
Binary file not shown.
Binary file removed benchmarks/branin/results/RF/run2/hyperspace02
Binary file not shown.
Binary file removed benchmarks/branin/results/RF/run2/hyperspace03
Binary file not shown.
Binary file removed benchmarks/branin/results/RF/run3/hyperspace00
Binary file not shown.
Binary file removed benchmarks/branin/results/RF/run3/hyperspace01
Binary file not shown.
Binary file removed benchmarks/branin/results/RF/run3/hyperspace02
Binary file not shown.
Binary file removed benchmarks/branin/results/RF/run3/hyperspace03
Binary file not shown.
Binary file removed benchmarks/branin/results/RF/run4/hyperspace00
Binary file not shown.
Binary file removed benchmarks/branin/results/RF/run4/hyperspace01
Binary file not shown.
Binary file removed benchmarks/branin/results/RF/run4/hyperspace02
Binary file not shown.
Binary file removed benchmarks/branin/results/RF/run4/hyperspace03
Binary file not shown.
Binary file removed benchmarks/branin/results/Rand/run0/hyperspace00
Binary file not shown.
Binary file removed benchmarks/branin/results/Rand/run0/hyperspace03
Binary file not shown.
Binary file removed benchmarks/branin/results/Rand/run1/hyperspace00
Binary file not shown.
Binary file removed benchmarks/branin/results/Rand/run1/hyperspace03
Binary file not shown.
Binary file removed benchmarks/branin/results/Rand/run2/hyperspace00
Binary file not shown.
Binary file removed benchmarks/branin/results/Rand/run2/hyperspace03
Binary file not shown.
Binary file removed benchmarks/branin/results/Rand/run3/hyperspace00
Binary file not shown.
Binary file removed benchmarks/branin/results/Rand/run3/hyperspace03
Binary file not shown.
Binary file removed benchmarks/branin/results/Rand/run4/hyperspace00
Binary file not shown.
Binary file removed benchmarks/branin/results/Rand/run4/hyperspace03
Binary file not shown.
14 changes: 9 additions & 5 deletions benchmarks/hart6/benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,24 @@ def run(results_dir, n_calls=200, n_runs=10):
for model in models:
model_dir = os.path.join(results_dir, model)
if not os.path.exists(model_dir):
os.makedirs(model_dir)
os.makedirs(model_dir, exist_ok=True)

for random_state in range(n_runs):
directory = os.path.join(model_dir, 'run' + str(random_state))

if not os.path.exists(directory):
os.makedirs(directory)
os.makedirs(directory, exist_ok=True)

checkpoint = load_results(directory)

hyperdrive(
hart6, bounds, directory, n_iterations=n_calls,
verbose=True, random_state=random_state,
checkpoints=True, restart=checkpoint
hart6,
bounds,
directory,
n_iterations=n_calls,
verbose=True,
random_state=random_state,
checkpoints_path=directory
)


Expand Down
31 changes: 0 additions & 31 deletions benchmarks/rastigrin/hyperbelt/benchmark.py

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
25 changes: 0 additions & 25 deletions benchmarks/rastigrin/robo/benchmark.py

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
31 changes: 0 additions & 31 deletions benchmarks/styblinskitang/hyperbelt/benchmark.py

This file was deleted.

136 changes: 0 additions & 136 deletions benchmarks/styblinskitang/hyperbelt/notebooks/hyperband.ipynb

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
5 changes: 2 additions & 3 deletions benchmarks/styblinskitang/hyperdrive/benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ def main():
parser = argparse.ArgumentParser(description='Setup experiment.')
parser.add_argument('--ndims', type=int, help='Number of dimensions for Styblinski-Tang function')
parser.add_argument('--results_dir', type=str, help='Path to results directory.')
parser.add_argument('--checkpoints', type=str, help='Path to checkpoints')
args = parser.parse_args()

stybtang = StyblinskiTang(args.ndims)
Expand All @@ -18,9 +17,9 @@ def main():
hyperdrive(objective=stybtang,
hyperparameters=bounds,
results_path=args.results_dir,
checkpoints_path=args.checkpoints,
checkpoints_path=args.results_dir,
model="GP",
n_iterations=50,
n_iterations=20,
verbose=True,
random_state=0)

Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
20 changes: 0 additions & 20 deletions benchmarks/styblinskitang/robo/benchmark.py

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
4 changes: 3 additions & 1 deletion examples/horovod_torch.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ def objective(hparams, model, train_sampler, train_loader, args):
epoch_loss = train(epoch, model, optimizer, train_sampler, train_loader, args)
loss += epoch_loss

return epoch_loss / args.epochs
loss_avg = epoch_loss / args.epochs

return loss_avg


def main():
Expand Down
Binary file not shown.
Binary file not shown.
Binary file removed examples/results/hyperbelt/gbm/hyperspace00
Binary file not shown.
Binary file removed examples/results/hyperbelt/gbm/hyperspace01
Binary file not shown.
Binary file removed examples/results/hyperbelt/gbm/hyperspace02
Binary file not shown.
Binary file removed examples/results/hyperbelt/gbm/hyperspace03
Binary file not shown.
Binary file removed examples/results/hyperbelt/gbm/hyperspace04
Binary file not shown.
Binary file removed examples/results/hyperbelt/gbm/hyperspace05
Binary file not shown.
Binary file removed examples/results/hyperbelt/gbm/hyperspace06
Binary file not shown.
Binary file removed examples/results/hyperbelt/gbm/hyperspace07
Binary file not shown.
Binary file removed examples/results/hyperbelt/gbm_rf/hyperspace00
Binary file not shown.
Binary file removed examples/results/hyperbelt/gbm_rf/hyperspace01
Binary file not shown.
Binary file removed examples/results/hyperbelt/gbm_rf/hyperspace02
Binary file not shown.
Binary file removed examples/results/hyperbelt/gbm_rf/hyperspace03
Binary file not shown.
Binary file removed examples/results/hyperbelt/gbm_rf/hyperspace04
Binary file not shown.
Binary file removed examples/results/hyperbelt/gbm_rf/hyperspace05
Binary file not shown.
Binary file removed examples/results/hyperbelt/gbm_rf/hyperspace06
Binary file not shown.
Binary file removed examples/results/hyperbelt/gbm_rf/hyperspace07
Binary file not shown.
Binary file removed examples/results/hyperbelt/hyperspace00
Binary file not shown.
Binary file removed examples/results/hyperbelt/hyperspace01
Binary file not shown.
Binary file removed examples/results/hyperbelt/hyperspace02
Binary file not shown.
Binary file removed examples/results/hyperbelt/hyperspace03
Binary file not shown.
Binary file removed examples/results/hyperbelt/hyperspace04
Binary file not shown.
Binary file removed examples/results/hyperbelt/hyperspace05
Binary file not shown.
Binary file removed examples/results/hyperbelt/hyperspace06
Binary file not shown.
Binary file removed examples/results/hyperbelt/hyperspace07
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed examples/results/hyperbelt/stybtang5/hyperspace0
Binary file not shown.
Binary file removed examples/results/hyperbelt/stybtang5/hyperspace1
Binary file not shown.
Binary file removed examples/results/hyperbelt/stybtang5/hyperspace10
Binary file not shown.
Binary file removed examples/results/hyperbelt/stybtang5/hyperspace11
Binary file not shown.
Binary file removed examples/results/hyperbelt/stybtang5/hyperspace12
Binary file not shown.
Binary file removed examples/results/hyperbelt/stybtang5/hyperspace13
Binary file not shown.
Binary file removed examples/results/hyperbelt/stybtang5/hyperspace14
Binary file not shown.
Binary file removed examples/results/hyperbelt/stybtang5/hyperspace15
Binary file not shown.
Binary file removed examples/results/hyperbelt/stybtang5/hyperspace16
Binary file not shown.
Binary file removed examples/results/hyperbelt/stybtang5/hyperspace17
Binary file not shown.
Binary file removed examples/results/hyperbelt/stybtang5/hyperspace18
Binary file not shown.
Binary file removed examples/results/hyperbelt/stybtang5/hyperspace19
Binary file not shown.
Binary file removed examples/results/hyperbelt/stybtang5/hyperspace2
Binary file not shown.
Binary file removed examples/results/hyperbelt/stybtang5/hyperspace20
Binary file not shown.
Binary file removed examples/results/hyperbelt/stybtang5/hyperspace21
Binary file not shown.
Binary file removed examples/results/hyperbelt/stybtang5/hyperspace22
Binary file not shown.
Binary file removed examples/results/hyperbelt/stybtang5/hyperspace23
Binary file not shown.
Binary file removed examples/results/hyperbelt/stybtang5/hyperspace24
Binary file not shown.
Binary file removed examples/results/hyperbelt/stybtang5/hyperspace25
Binary file not shown.
Binary file removed examples/results/hyperbelt/stybtang5/hyperspace26
Binary file not shown.
Binary file removed examples/results/hyperbelt/stybtang5/hyperspace27
Binary file not shown.
Binary file removed examples/results/hyperbelt/stybtang5/hyperspace28
Binary file not shown.
Binary file removed examples/results/hyperbelt/stybtang5/hyperspace29
Binary file not shown.
Binary file removed examples/results/hyperbelt/stybtang5/hyperspace3
Binary file not shown.