Mark Color Modification
This commit is contained in:
parent
bb34c6e325
commit
9bbfcaf736
1 changed files with 0 additions and 46 deletions
|
|
@ -214,49 +214,3 @@ if __name__ == "__main__":
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# styled_df = latest_csv.style.format(columns).applymap(lambda val: highlight_vals(val, max=3.0, is_last=True), subset=subset1)
|
||||
|
||||
# # These are the same:
|
||||
# task = 'ppl_result'
|
||||
# styled_df = styled_df.applymap(lambda val: highlight_vals(val, max=highlight_threshold, is_last=False), subset=[f'{task}_diff_FP16(%)'])
|
||||
# # add css style to restrict width and wrap text
|
||||
# styled_df.set_table_styles([{
|
||||
# 'selector': 'th, td',
|
||||
# 'props': [('max-width', '88px'), ('word-wrap', 'break-word')]
|
||||
# }], overwrite=False)
|
||||
|
||||
# html_output = styled_df.set_table_attributes("border=1").to_html()
|
||||
|
||||
# with open(daily_html, 'w') as f:
|
||||
# f.write(html_output)
|
||||
# else:
|
||||
# latest_csv.drop('Index', axis=1, inplace=True)
|
||||
# columns_sec={'ppl_result': '{:.2f}'}
|
||||
# styled_df = latest_csv.style.format(columns_sec).applymap(lambda val: highlight_vals(val, max=3.0, is_last=True))#, subset=subset1)
|
||||
# task = 'ppl_result'
|
||||
# styled_df = styled_df.applymap(lambda val: highlight_vals(val, max=highlight_threshold, is_last=False), subset=[f'{task}_diff_FP16(%)'])
|
||||
|
||||
|
||||
|
||||
# # add css style to restrict width and wrap text
|
||||
# styled_df.set_table_styles([{
|
||||
# 'selector': 'th, td',
|
||||
# 'props': [('max-width', '88px'), ('word-wrap', 'break-word')]
|
||||
# }], overwrite=False)
|
||||
|
||||
# html_output = styled_df.set_table_attributes("border=1").to_html()
|
||||
|
||||
# with open(daily_html, 'w') as f:
|
||||
# f.write(html_output)
|
||||
|
||||
# if args.baseline_path and not diffs_within_normal_range:
|
||||
# print("The diffs are outside the normal range: %" + str(highlight_threshold))
|
||||
# return 1
|
||||
# return 0
|
||||
|
||||
# if __name__ == "__main__":
|
||||
# sys.exit(main())
|
||||
|
|
|
|||
Loading…
Reference in a new issue