Map int to float for TuckER regularize_args
Map integer arguments for `tucker3_relation_embedder.regularize_args.p` to floats for backward compatibility, as per the discussion in
@@ -720,6 +720,11 @@ def _process_deprecated_options(options: Dict[str, Any]):
renamed_keys.add(key)
return renamed_keys
+ # 21.10.2020
+ tucker_reg_key = "tucker3_relation_embedder.regularize_args.p"
+ if tucker_reg_key in options and isinstance(options[tucker_reg_key], int):
+ options[tucker_reg_key] = float(options[tucker_reg_key])
+
# 15.9.2020
rename_keys_re(
"^valid\.early_stopping\.min_threshold\.", "valid.early_stopping.threshold."
