add pipeline data in results

This commit is contained in:
bohanjason 2020-03-01 23:27:41 -05:00 committed by Dana Van Aken
parent be9307822e
commit 9ee71ea58a
1 changed files with 5 additions and 1 deletions

View File

@ -686,9 +686,13 @@ def configuration_recommendation(recommendation_input):
params = JSONUtil.loads(session.hyperparameters)
if target_data['bad'] is True:
if session.tuning_session == 'randomly_generate':
info = 'Randomly generated'
else:
info = 'WARNING: no training data, the config is generated by LHS'
target_data_res = create_and_save_recommendation(
recommended_knobs=target_data['config_recommend'], result=newest_result,
status='bad', info='WARNING: no training data, the config is generated by LHS',
status='bad', info=info,
pipeline_run=target_data['pipeline_run'])
LOG.debug('%s: Skipping configuration recommendation.\nData:\n%s\n\n',
AlgorithmType.name(algorithm), target_data)