pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/hyperopt/hyperopt/commit/d4eb80bdb0a86c5fa92f66411cba0c054f617f2f

cd2374bb7.css" /> Fixing errors for the Black linter · hyperopt/hyperopt@d4eb80b · GitHub
Skip to content

Commit d4eb80b

Browse files
committed
Fixing errors for the Black linter
1 parent 2112fca commit d4eb80b

5 files changed

Lines changed: 8 additions & 8 deletions

File tree

hyperopt/atpe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def ClosedNamedTempFile(contents):
4242

4343

4444
class Hyperparameter:
45-
""" This class represents a hyperparameter."""
45+
"""This class represents a hyperparameter."""
4646

4747
def __init__(self, config, parent=None, root="root"):
4848
self.config = config

hyperopt/exceptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class BadSearchSpace(Exception):
77

88

99
class DuplicateLabel(BadSearchSpace):
10-
"""A search space included a duplicate label """
10+
"""A search space included a duplicate label"""
1111

1212

1313
class InvalidTrial(ValueError):

hyperopt/pyll/base.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626

2727
class PyllImportError(ImportError):
28-
"""A pyll symbol was not defined in the scope """
28+
"""A pyll symbol was not defined in the scope"""
2929

3030

3131
class MissingArgument:
@@ -93,13 +93,13 @@ def range(self, *args):
9393
return self._new_apply("range", args, {}, o_len=None, pure=True)
9494

9595
def max(self, *args):
96-
""" return max of args """
96+
"""return max of args"""
9797
return self._new_apply(
9898
"max", list(map(as_apply, args)), {}, o_len=None, pure=True
9999
)
100100

101101
def min(self, *args):
102-
""" return min of args """
102+
"""return min of args"""
103103
return self._new_apply(
104104
"min", list(map(as_apply, args)), {}, o_len=None, pure=True
105105
)
@@ -760,7 +760,7 @@ def clone_merge(expr, memo=None, merge_literals=False):
760760

761761

762762
class GarbageCollected:
763-
"""Placeholder representing a garbage-collected value """
763+
"""Placeholder representing a garbage-collected value"""
764764

765765

766766
def rec_eval(

hyperopt/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def _get_random_id():
2323

2424

2525
def _get_logger(name):
26-
""" Gets a logger by name, or creates and configures it for the first time. """
26+
"""Gets a logger by name, or creates and configures it for the first time."""
2727
logger = logging.getLogger(name)
2828
logger.setLevel(logging.INFO)
2929
# If the logger is configured, skip the configure

tutorial/01.BasicTutorial.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,4 +272,4 @@
272272
},
273273
"nbformat": 4,
274274
"nbformat_minor": 4
275-
}
275+
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy