Skip to content

Commit

Permalink
Fix py2 error
Browse files Browse the repository at this point in the history
  • Loading branch information
evhub committed Mar 16, 2019
1 parent bb45229 commit 1d1603d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions bbopt-source/backends/skopt.coco
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ from bbopt.backends.util import (

def create_space(name, func, *args):
"""Create a scikit-optimize space for the given parameter."""
name = py_str(name)
case func:
match "choice":
return Categorical(*args, name=name)
Expand Down
2 changes: 1 addition & 1 deletion 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.0.2"
version = "1.0.3"
description = "The easiest hyperparameter optimization you'll ever do."
long_description = """
See BBopt's GitHub_ for more information.
Expand Down
3 changes: 2 additions & 1 deletion bbopt/backends/skopt.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# __coconut_hash__ = 0x40ae0ce6
# __coconut_hash__ = 0x2fd491f8

# Compiled with Coconut version 1.4.0-post_dev23 [Ernest Scribbler]

Expand Down Expand Up @@ -41,6 +41,7 @@

def create_space(name, func, *args):
"""Create a scikit-optimize space for the given parameter."""
name = py_str(name)
_coconut_match_to = func
_coconut_case_check_0 = False
if _coconut_match_to == "choice":
Expand Down
4 changes: 2 additions & 2 deletions bbopt/constants.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# __coconut_hash__ = 0xe423d869
# __coconut_hash__ = 0xc8d11a42

# Compiled with Coconut version 1.4.0-post_dev23 [Ernest Scribbler]

Expand Down Expand Up @@ -29,7 +29,7 @@

# Installation constants:
name = "bbopt"
version = "1.0.2"
version = "1.0.3"
description = "The easiest hyperparameter optimization you'll ever do."
long_description = """
See BBopt's GitHub_ for more information.
Expand Down

0 comments on commit 1d1603d

Please sign in to comment.