for param_name, param_distribution in search_space.items():
if param_name not in trial.distributions:
delete_list.append(param_name)
elif trial.distributions[param_name] != param_distribution:
delete_list.append(param_name)
for param_name in delete_list:
After Change
"`product_search_space` function is deprecated. "
"Please use `intersection_search_space` function instead.", DeprecationWarning)
logger = logging.get_logger(__name__)
logger.warning("`product_search_space` function is deprecated. "
"Please use `intersection_search_space` function instead.")
return intersection_search_space(study)