Skip to content

Commit

Permalink
fixing doc example
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurpaulino committed Apr 18, 2019
1 parent c7d9560 commit fbcb742
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion miraiml/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
>>> from miraiml import HyperSearchSpace, Config, Engine
"""

__version__ = '2.0.1.4'
__version__ = '2.0.1.5'

from .main import HyperSearchSpace, Config, Engine

Expand Down
5 changes: 2 additions & 3 deletions miraiml/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,8 @@ class Engine:
from miraiml import Engine
def on_improvement(status):
best_id = status['best_id']
scores = status['scores']
print('Best score:', scores[best_id])
# prints the best score everytime an improvement is found
print('Score:', status['score'])
engine = Engine(config, on_improvement=on_improvement)
"""
Expand Down

0 comments on commit fbcb742

Please sign in to comment.