Skip to content

Commit b6d8c5b

Browse files
committed
Merge branch 'master' of https://github.com/automl/HpBandSter
2 parents 575a392 + 5fb7c5e commit b6d8c5b

File tree

4 files changed

+34
-3
lines changed

4 files changed

+34
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# HpBandSter [![Build Status](https://travis-ci.org/automl/HpBandSter.svg?branch=master)](https://travis-ci.org/automl/HpBandSter)
1+
# HpBandSter [![Build Status](https://travis-ci.org/automl/HpBandSter.svg?branch=master)](https://travis-ci.org/automl/HpBandSter) [![codecov](https://codecov.io/gh/automl/HpBandSter/branch/master/graph/badge.svg)](https://codecov.io/gh/automl/HpBandSter)
22
a distributed Hyperband implementation on Steroids
33

44
This python 3 package is a framework for distributed hyperparameter optimization.

codecov.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
codecov:
2+
notify:
3+
require_ci_to_pass: yes
4+
5+
coverage:
6+
precision: 2
7+
round: down
8+
range: "70...100"
9+
10+
status:
11+
project: yes
12+
patch: yes
13+
changes: no
14+
15+
parsers:
16+
gcov:
17+
branch_detection:
18+
conditional: yes
19+
loop: yes
20+
method: no
21+
macro: no
22+
23+
comment:
24+
layout: "header, diff"
25+
behavior: default
26+
require_changes: no
27+
28+
ignore:
29+
- "hpbandster/examples/.*"
30+
- "hpbandster/workers/hpolibbenchmark.py"

hpbandster/optimizers/config_generators/h2bo.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,8 @@ def new_result(self, job, update_model=True):
227227
# skip model building:
228228
# a) if not enough points are available
229229

230-
if np.sum(np.isfinite(self.losses[budget])) < min_num_points:
230+
tmp = np.array([np.mean(r) for r in self.losses[budget]])
231+
if np.sum(np.isfinite(tmp)) < min_num_points:
231232
self.logger.debug("Only %i successful run(s) for budget %f available, need more than %s -> can't build model!"%(np.sum(np.isfinite(self.losses[budget])), budget, min_num_points))
232233
return
233234

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
setup(
44
name='hpbandster',
5-
version='0.7.3',
5+
version='0.7.4',
66
description='HyPerBAND on STERoids, a distributed Hyperband implementation with lots of room for improvement',
77
author='Stefan Falkner',
88
author_email='[email protected]',

0 commit comments

Comments
 (0)