mirror of
https://github.com/clearml/clearml
synced 2025-01-31 17:17:00 +00:00
Fix optimizer to support string
This commit is contained in:
parent
29727b80b7
commit
4bfd614367
@ -1087,7 +1087,7 @@ class HyperParameterOptimizer(object):
|
||||
if specific_time:
|
||||
self.optimization_timeout = specific_time.timestamp()
|
||||
else:
|
||||
self.optimization_timeout = (in_minutes * 60.) + time() if in_minutes else None
|
||||
self.optimization_timeout = (float(in_minutes) * 60.) + time() if in_minutes else None
|
||||
|
||||
def get_time_limit(self):
|
||||
# type: () -> datetime
|
||||
|
Loading…
Reference in New Issue
Block a user