mirror of
https://github.com/wassname/ray.git
synced 2026-10-01 12:31:37 +08:00
[tune] Use isinstance instead of type in PBT (#11175)
This commit is contained in:
1 parent
ff6d412ad9
commit
6288d954b5
1 file changed
+1
-1
@@ -77,7 +77,7 @@ def explore(config: Dict, mutations: Dict, resample_probability: float,
|
||||
new_config[key] = config[key] * 1.2
|
||||
else:
|
||||
new_config[key] = config[key] * 0.8
|
||||
if type(config[key]) is int:
|
||||
if isinstance(config[key], int):
|
||||
new_config[key] = int(new_config[key])
|
||||
if custom_explore_fn:
|
||||
new_config = custom_explore_fn(new_config)
|
||||
|
||||
Reference in new issue
Block a user