Skip to content

Commit

Permalink
fixed comments
Browse files Browse the repository at this point in the history
  • Loading branch information
civodlu committed Feb 23, 2020
1 parent ab34df2 commit e61c7dd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/trw/hparams/params_optimizer_random_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ def load_loss_params(output_location):
reload the loss as self contained .pkl file to be analyzed later
"""
with open(output_location, 'rb') as f:

loss = pickle.load(f)
infos = pickle.load(f)
hyper_parameters = pickle.load(f)
Expand All @@ -42,7 +41,7 @@ def load_loss_params(output_location):

class HyperParametersOptimizerRandomSearchLocal:
"""
Random hyper parameter run on a single machine
Random hyper parameter search on a single machine
We need to define the hyper parameter evaluation function::
Expand All @@ -57,7 +56,7 @@ def __init__(self, evaluate_hparams_fn, repeat, log_string=log_random, result_pr
"""
Args:
evaluate_hparams_fn: the function to be optimized. It will be valled with `hparams` and expects as result
evaluate_hparams_fn: the function to be minimized. It will be called with `hparams` and expects as result
a tuple (loss, report)
repeat: the number of iteration of the search
log_string: how to log the search
Expand Down

0 comments on commit e61c7dd

Please sign in to comment.