Skip to content

Commit

Permalink
Update to new hyperopt
Browse files Browse the repository at this point in the history
Resolves #9.
  • Loading branch information
evhub committed Oct 28, 2019
1 parent e8e1580 commit f97a545
Show file tree
Hide file tree
Showing 21 changed files with 49 additions and 49 deletions.
8 changes: 4 additions & 4 deletions bbopt-source/constants.coco
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Constants for use across all of BBopt.

# Installation constants:
name = "bbopt"
version = "1.1.6"
version = "1.1.7"
description = "The easiest hyperparameter optimization you'll ever do."
long_description = """
See BBopt's GitHub_ for more information.
Expand All @@ -26,9 +26,9 @@ requirements = (
"matplotlib>=2.0",
"portalocker>=1.4",
"scikit-optimize>=0.5.2",
"hyperopt>=0.1.2",
# fixes an error in hyperopt 0.1 with networkx>=2.0
"networkx>=1.0,<2.0",
"hyperopt>=0.2.1",
# fixes an issue with bson which is used by hyperopt
"pymongo>=3.9",
)
extra_requirements = {
":python_version<'3'": (
Expand Down
6 changes: 3 additions & 3 deletions bbopt/__coconut__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# -*- coding: utf-8 -*-
# type: ignore

# Compiled with Coconut version 1.4.0-post_dev40 [Ernest Scribbler]
# Compiled with Coconut version 1.4.1-post_dev3 [Ernest Scribbler]

"""Built-in Coconut utilities."""

Expand Down Expand Up @@ -124,7 +124,7 @@ def _coconut_reduce_partial(self):
py_chr, py_hex, py_input, py_int, py_map, py_object, py_oct, py_open, py_print, py_range, py_str, py_zip, py_filter, py_reversed, py_enumerate, py_repr = chr, hex, input, int, map, object, oct, open, print, range, str, zip, filter, reversed, enumerate, repr
_coconut_str = str
class _coconut(object):
import collections, copy, functools, types, itertools, operator, threading, weakref
import collections, copy, functools, types, itertools, operator, threading, weakref, os
if _coconut_sys.version_info < (3, 2):
try:
from backports.functools_lru_cache import lru_cache
Expand All @@ -146,7 +146,7 @@ class typing(object):
@staticmethod
def NamedTuple(name, fields):
return _coconut.collections.namedtuple(name, [x for x, t in fields])
Ellipsis, Exception, AttributeError, ImportError, IndexError, KeyError, NameError, TypeError, ValueError, StopIteration, classmethod, dict, enumerate, filter, float, frozenset, getattr, hasattr, hash, id, int, isinstance, issubclass, iter, len, list, map, min, max, next, object, property, range, reversed, set, slice, str, sum, super, tuple, type, zip, repr, bytearray = Ellipsis, Exception, AttributeError, ImportError, IndexError, KeyError, NameError, TypeError, ValueError, StopIteration, classmethod, dict, enumerate, filter, float, frozenset, getattr, hasattr, hash, id, int, isinstance, issubclass, iter, len, list, map, min, max, next, object, property, range, reversed, set, slice, str, sum, super, tuple, type, zip, staticmethod(repr), bytearray
Ellipsis, Exception, AttributeError, ImportError, IndexError, KeyError, NameError, TypeError, ValueError, StopIteration, classmethod, dict, enumerate, filter, float, frozenset, getattr, hasattr, hash, id, int, isinstance, issubclass, iter, len, list, locals, map, min, max, next, object, property, range, reversed, set, slice, str, sum, super, tuple, type, zip, repr, bytearray = Ellipsis, Exception, AttributeError, ImportError, IndexError, KeyError, NameError, TypeError, ValueError, StopIteration, classmethod, dict, enumerate, filter, float, frozenset, getattr, hasattr, hash, id, int, isinstance, issubclass, iter, len, list, locals, map, min, max, next, object, property, range, reversed, set, slice, str, sum, super, tuple, type, zip, staticmethod(repr), bytearray
_coconut_sentinel = _coconut.object()
class MatchError(Exception):
"""Pattern-matching error. Has attributes .pattern and .value."""
Expand Down
4 changes: 2 additions & 2 deletions bbopt/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# __coconut_hash__ = 0x754305b2
# __coconut_hash__ = 0xd8adaf06

# Compiled with Coconut version 1.4.0-post_dev40 [Ernest Scribbler]
# Compiled with Coconut version 1.4.1-post_dev3 [Ernest Scribbler]

"""
BBopt black box optimization frontend
Expand Down
4 changes: 2 additions & 2 deletions bbopt/__main__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# __coconut_hash__ = 0x63f9d0fe
# __coconut_hash__ = 0x9ad6315f

# Compiled with Coconut version 1.4.0-post_dev40 [Ernest Scribbler]
# Compiled with Coconut version 1.4.1-post_dev3 [Ernest Scribbler]

"""
Endpoint for the BBopt CLI.
Expand Down
4 changes: 2 additions & 2 deletions bbopt/backends/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# __coconut_hash__ = 0x905ecfe5
# __coconut_hash__ = 0xd9597a6

# Compiled with Coconut version 1.4.0-post_dev40 [Ernest Scribbler]
# Compiled with Coconut version 1.4.1-post_dev3 [Ernest Scribbler]

"""
Backends contains all of bbopt's different backends.
Expand Down
4 changes: 2 additions & 2 deletions bbopt/backends/hyperopt.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# __coconut_hash__ = 0x821ae89c
# __coconut_hash__ = 0xc3fad784

# Compiled with Coconut version 1.4.0-post_dev40 [Ernest Scribbler]
# Compiled with Coconut version 1.4.1-post_dev3 [Ernest Scribbler]

"""
The hyperopt backend. Does black box optimization using hyperopt.
Expand Down
4 changes: 2 additions & 2 deletions bbopt/backends/mixture.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# __coconut_hash__ = 0x18531269
# __coconut_hash__ = 0x4e767ac9

# Compiled with Coconut version 1.4.0-post_dev40 [Ernest Scribbler]
# Compiled with Coconut version 1.4.1-post_dev3 [Ernest Scribbler]

"""
The mixture backend. Lets you specify a distribution over different possible algorithms.
Expand Down
4 changes: 2 additions & 2 deletions bbopt/backends/random.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# __coconut_hash__ = 0xd0fa5eb0
# __coconut_hash__ = 0xa49efebf

# Compiled with Coconut version 1.4.0-post_dev40 [Ernest Scribbler]
# Compiled with Coconut version 1.4.1-post_dev3 [Ernest Scribbler]

"""
The random backend. Does not use existing data, simply spits out random valid values.
Expand Down
4 changes: 2 additions & 2 deletions bbopt/backends/serving.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# __coconut_hash__ = 0xe8b86f0
# __coconut_hash__ = 0x56361441

# Compiled with Coconut version 1.4.0-post_dev40 [Ernest Scribbler]
# Compiled with Coconut version 1.4.1-post_dev3 [Ernest Scribbler]

"""
The serving backend. Selects the best existing data point.
Expand Down
4 changes: 2 additions & 2 deletions bbopt/backends/skopt.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# __coconut_hash__ = 0x3b0e5e92
# __coconut_hash__ = 0x4abda7fe

# Compiled with Coconut version 1.4.0-post_dev40 [Ernest Scribbler]
# Compiled with Coconut version 1.4.1-post_dev3 [Ernest Scribbler]

"""
The scikit-optimize backend. Does black box optimization using scikit-optimize.
Expand Down
4 changes: 2 additions & 2 deletions bbopt/backends/util.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# __coconut_hash__ = 0x80ca3ec7
# __coconut_hash__ = 0x891167fd

# Compiled with Coconut version 1.4.0-post_dev40 [Ernest Scribbler]
# Compiled with Coconut version 1.4.1-post_dev3 [Ernest Scribbler]

"""
Utilities for use in BBopt backends.
Expand Down
4 changes: 2 additions & 2 deletions bbopt/cli.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# __coconut_hash__ = 0xa8d96df3
# __coconut_hash__ = 0x651d92a3

# Compiled with Coconut version 1.4.0-post_dev40 [Ernest Scribbler]
# Compiled with Coconut version 1.4.1-post_dev3 [Ernest Scribbler]

"""
BBopt command line interface.
Expand Down
8 changes: 4 additions & 4 deletions bbopt/constants.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# __coconut_hash__ = 0x30737416
# __coconut_hash__ = 0x44fe4a95

# Compiled with Coconut version 1.4.0-post_dev40 [Ernest Scribbler]
# Compiled with Coconut version 1.4.1-post_dev3 [Ernest Scribbler]

"""
Constants for use across all of BBopt.
Expand All @@ -29,7 +29,7 @@

# Installation constants:
name = "bbopt"
version = "1.1.6"
version = "1.1.7"
description = "The easiest hyperparameter optimization you'll ever do."
long_description = """
See BBopt's GitHub_ for more information.
Expand All @@ -40,7 +40,7 @@
author = "Evan Hubinger"
author_email = "evanjhub@gmail.com"
classifiers = ("Development Status :: 5 - Production/Stable", "License :: OSI Approved :: Apache Software License", "Topic :: Software Development :: Libraries :: Python Modules", "Operating System :: OS Independent",)
requirements = ("numpy>=1.0", "matplotlib>=2.0", "portalocker>=1.4", "scikit-optimize>=0.5.2", "hyperopt>=0.1.2", "networkx>=1.0,<2.0",)
requirements = ("numpy>=1.0", "matplotlib>=2.0", "portalocker>=1.4", "scikit-optimize>=0.5.2", "hyperopt>=0.2.1", "pymongo>=3.9",)
extra_requirements = {":python_version<'3'": ("futures>=3.2",), "examples": ("keras", "scikit-learn",)}
extra_requirements["dev"] = (extra_requirements["examples"] + ("coconut-develop", "pytest>=3.0",))

Expand Down
4 changes: 2 additions & 2 deletions bbopt/optimizer.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# __coconut_hash__ = 0x89ecf4ca
# __coconut_hash__ = 0xb7e90c88

# Compiled with Coconut version 1.4.0-post_dev40 [Ernest Scribbler]
# Compiled with Coconut version 1.4.1-post_dev3 [Ernest Scribbler]

"""
The main BBopt interface.
Expand Down
4 changes: 2 additions & 2 deletions bbopt/params.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# __coconut_hash__ = 0xa71a390
# __coconut_hash__ = 0x94aa3a3a

# Compiled with Coconut version 1.4.0-post_dev40 [Ernest Scribbler]
# Compiled with Coconut version 1.4.1-post_dev3 [Ernest Scribbler]

"""
Handles standardizing param calls to use standard library random functions.
Expand Down
4 changes: 2 additions & 2 deletions bbopt/registry.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# __coconut_hash__ = 0xd017ca80
# __coconut_hash__ = 0xed6da886

# Compiled with Coconut version 1.4.0-post_dev40 [Ernest Scribbler]
# Compiled with Coconut version 1.4.1-post_dev3 [Ernest Scribbler]

"""
The backend and algorithm registries.
Expand Down
4 changes: 2 additions & 2 deletions bbopt/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# __coconut_hash__ = 0x196fb0ec
# __coconut_hash__ = 0xcdcba567

# Compiled with Coconut version 1.4.0-post_dev40 [Ernest Scribbler]
# Compiled with Coconut version 1.4.1-post_dev3 [Ernest Scribbler]

# Coconut Header: -------------------------------------------------------------

Expand Down
4 changes: 2 additions & 2 deletions bbopt/tests/constants_test.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# __coconut_hash__ = 0x2a5e4d27
# __coconut_hash__ = 0xc6942916

# Compiled with Coconut version 1.4.0-post_dev40 [Ernest Scribbler]
# Compiled with Coconut version 1.4.1-post_dev3 [Ernest Scribbler]

# Coconut Header: -------------------------------------------------------------

Expand Down
4 changes: 2 additions & 2 deletions bbopt/tests/examples_test.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# __coconut_hash__ = 0xbf0eca3b
# __coconut_hash__ = 0xdcc94701

# Compiled with Coconut version 1.4.0-post_dev40 [Ernest Scribbler]
# Compiled with Coconut version 1.4.1-post_dev3 [Ernest Scribbler]

# Coconut Header: -------------------------------------------------------------

Expand Down
4 changes: 2 additions & 2 deletions bbopt/util.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# __coconut_hash__ = 0xc8ec1f45
# __coconut_hash__ = 0xcc184c5d

# Compiled with Coconut version 1.4.0-post_dev40 [Ernest Scribbler]
# Compiled with Coconut version 1.4.1-post_dev3 [Ernest Scribbler]

"""
Utilities for use across all of bbopt.
Expand Down
8 changes: 4 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# __coconut_hash__ = 0x7df44bc3
# __coconut_hash__ = 0x46233645

# Compiled with Coconut version 1.4.0-post_dev40 [Ernest Scribbler]
# Compiled with Coconut version 1.4.1-post_dev3 [Ernest Scribbler]

# Coconut Header: -------------------------------------------------------------

Expand Down Expand Up @@ -122,7 +122,7 @@ def _coconut_reduce_partial(self):
py_chr, py_hex, py_input, py_int, py_map, py_object, py_oct, py_open, py_print, py_range, py_str, py_zip, py_filter, py_reversed, py_enumerate, py_repr = chr, hex, input, int, map, object, oct, open, print, range, str, zip, filter, reversed, enumerate, repr
_coconut_str = str
class _coconut(object):
import collections, copy, functools, types, itertools, operator, threading, weakref
import collections, copy, functools, types, itertools, operator, threading, weakref, os
if _coconut_sys.version_info < (3, 2):
try:
from backports.functools_lru_cache import lru_cache
Expand All @@ -144,7 +144,7 @@ class typing(object):
@staticmethod
def NamedTuple(name, fields):
return _coconut.collections.namedtuple(name, [x for x, t in fields])
Ellipsis, Exception, AttributeError, ImportError, IndexError, KeyError, NameError, TypeError, ValueError, StopIteration, classmethod, dict, enumerate, filter, float, frozenset, getattr, hasattr, hash, id, int, isinstance, issubclass, iter, len, list, map, min, max, next, object, property, range, reversed, set, slice, str, sum, super, tuple, type, zip, repr, bytearray = Ellipsis, Exception, AttributeError, ImportError, IndexError, KeyError, NameError, TypeError, ValueError, StopIteration, classmethod, dict, enumerate, filter, float, frozenset, getattr, hasattr, hash, id, int, isinstance, issubclass, iter, len, list, map, min, max, next, object, property, range, reversed, set, slice, str, sum, super, tuple, type, zip, staticmethod(repr), bytearray
Ellipsis, Exception, AttributeError, ImportError, IndexError, KeyError, NameError, TypeError, ValueError, StopIteration, classmethod, dict, enumerate, filter, float, frozenset, getattr, hasattr, hash, id, int, isinstance, issubclass, iter, len, list, locals, map, min, max, next, object, property, range, reversed, set, slice, str, sum, super, tuple, type, zip, repr, bytearray = Ellipsis, Exception, AttributeError, ImportError, IndexError, KeyError, NameError, TypeError, ValueError, StopIteration, classmethod, dict, enumerate, filter, float, frozenset, getattr, hasattr, hash, id, int, isinstance, issubclass, iter, len, list, locals, map, min, max, next, object, property, range, reversed, set, slice, str, sum, super, tuple, type, zip, staticmethod(repr), bytearray
_coconut_sentinel = _coconut.object()
class MatchError(Exception):
"""Pattern-matching error. Has attributes .pattern and .value."""
Expand Down

0 comments on commit f97a545

Please sign in to comment.