Merge pull request #5005 from Pascal66/patch-2
Fix a rare error during hyperopt
This commit is contained in:
commit
5d44ca0b82
@ -163,7 +163,8 @@ class Hyperopt:
|
|||||||
:param epoch: result dictionary for this epoch.
|
:param epoch: result dictionary for this epoch.
|
||||||
"""
|
"""
|
||||||
with self.results_file.open('a') as f:
|
with self.results_file.open('a') as f:
|
||||||
rapidjson.dump(epoch, f, default=str, number_mode=rapidjson.NM_NATIVE)
|
rapidjson.dump(epoch, f, default=str,
|
||||||
|
number_mode=rapidjson.NM_NATIVE | rapidjson.NM_NAN)
|
||||||
f.write("\n")
|
f.write("\n")
|
||||||
|
|
||||||
self.num_epochs_saved += 1
|
self.num_epochs_saved += 1
|
||||||
|
Loading…
Reference in New Issue
Block a user