@@ -263,38 +263,38 @@ def write_results_table(workbook, worksheet, evaluation_summary):
263263 worksheet .merge_range ("A1:B1" , "Human Results" , cell_formatting (workbook , "#4f8df1" ))
264264 worksheet .write (1 , 0 , f"Verified { ISSUES_TITLE } " , cell_formatting (workbook , "#bfbfbf" ))
265265 worksheet .write (
266- 1 , 1 , len (evaluation_summary .actual_true_positives ), cell_formatting (workbook , "#ffffff" )
266+ 1 , 1 , len (evaluation_summary .actual_issues ), cell_formatting (workbook , "#ffffff" )
267267 )
268268 worksheet .write (2 , 0 , f"Verified { NON_ISSUES_TITLE } " , cell_formatting (workbook , "#bfbfbf" ))
269269 worksheet .write (
270- 2 , 1 , len (evaluation_summary .actual_false_positives ), cell_formatting (workbook , "#ffffff" )
270+ 2 , 1 , len (evaluation_summary .actual_non_issues ), cell_formatting (workbook , "#ffffff" )
271271 )
272272
273273 worksheet .merge_range ("C1:D1" , "AI Results" , cell_formatting (workbook , "#4f8df1" ))
274274 worksheet .write (1 , 2 , f"Predicted { ISSUES_TITLE } " , cell_formatting (workbook , "#bfbfbf" ))
275275 worksheet .write (
276- 1 , 3 , len (evaluation_summary .predicted_true_positives ), cell_formatting (workbook , "#ffffff" )
276+ 1 , 3 , len (evaluation_summary .predicted_issues ), cell_formatting (workbook , "#ffffff" )
277277 )
278278 worksheet .write (2 , 2 , f"Predicted { NON_ISSUES_TITLE } " , cell_formatting (workbook , "#bfbfbf" ))
279279 worksheet .write (
280280 2 ,
281281 3 ,
282- len (evaluation_summary .predicted_false_positives ),
282+ len (evaluation_summary .predicted_non_issues ),
283283 cell_formatting (workbook , "#ffffff" ),
284284 )
285285
286286
287287def write_confusion_matrix (workbook , worksheet , evaluation_summary ):
288288 worksheet .merge_range ("A8:A9" , "Human Results" , cell_formatting (workbook , "#00b903" ))
289- worksheet .write (7 , 1 , "Actual False Positives " , cell_formatting (workbook , "#bfbfbf" ))
289+ worksheet .write (7 , 1 , "Actual Non Issues " , cell_formatting (workbook , "#bfbfbf" ))
290290 worksheet .write (7 , 2 , evaluation_summary .tp , cell_formatting (workbook , "#28A745" ))
291- worksheet .write (8 , 1 , "Actual True Positives " , cell_formatting (workbook , "#bfbfbf" ))
291+ worksheet .write (8 , 1 , "Actual Issues " , cell_formatting (workbook , "#bfbfbf" ))
292292 worksheet .write (8 , 2 , evaluation_summary .fp , cell_formatting (workbook , "#FF0000" ))
293293
294294 worksheet .merge_range ("C6:D6" , "AI Results" , cell_formatting (workbook , "#4f8df1" ))
295- worksheet .write (6 , 2 , "Predicted False Positives " , cell_formatting (workbook , "#bfbfbf" ))
295+ worksheet .write (6 , 2 , "Predicted Non Issues " , cell_formatting (workbook , "#bfbfbf" ))
296296 worksheet .write (7 , 3 , evaluation_summary .fn , cell_formatting (workbook , "#FF0000" ))
297- worksheet .write (6 , 3 , "Predicted True Positives " , cell_formatting (workbook , "#bfbfbf" ))
297+ worksheet .write (6 , 3 , "Predicted Issues " , cell_formatting (workbook , "#bfbfbf" ))
298298 worksheet .write (8 , 3 , evaluation_summary .tn , cell_formatting (workbook , "#28A745" ))
299299
300300
@@ -320,42 +320,42 @@ def write_model_performance(workbook, worksheet, evaluation_summary, METRICS_STA
320320def write_table_key (workbook , worksheet , KEY_START_ROW ):
321321 worksheet .write (KEY_START_ROW , 0 , "Table Key:" , workbook .add_format ({"bold" : 1 }))
322322 worksheet .write (
323- KEY_START_ROW + 1 , 0 , "Verified True Positives =" , workbook .add_format ({"bold" : 1 })
323+ KEY_START_ROW + 1 , 0 , "Verified Issues =" , workbook .add_format ({"bold" : 1 })
324324 )
325325 worksheet .write (
326326 KEY_START_ROW + 1 ,
327327 1 ,
328- "Human verified as a real issue (true positive )" ,
328+ "Human verified as a real issue (issues )" ,
329329 workbook .add_format ({"italic" : 1 }),
330330 )
331331
332332 worksheet .write (
333- KEY_START_ROW + 2 , 0 , "Verified False Positives =" , workbook .add_format ({"bold" : 1 })
333+ KEY_START_ROW + 2 , 0 , "Verified Non Issues =" , workbook .add_format ({"bold" : 1 })
334334 )
335335 worksheet .write (
336336 KEY_START_ROW + 2 ,
337337 1 ,
338- "Human verified as not a real issue (false positive )" ,
338+ "Human verified as not a real issue (non issues )" ,
339339 workbook .add_format ({"italic" : 1 }),
340340 )
341341
342342 worksheet .write (
343- KEY_START_ROW + 3 , 0 , "Predicted True Positives =" , workbook .add_format ({"bold" : 1 })
343+ KEY_START_ROW + 3 , 0 , "Predicted Issues =" , workbook .add_format ({"bold" : 1 })
344344 )
345345 worksheet .write (
346346 KEY_START_ROW + 3 ,
347347 1 ,
348- "AI Predicted as a real issue (true positive )" ,
348+ "AI Predicted as a real issue (issues )" ,
349349 workbook .add_format ({"italic" : 1 }),
350350 )
351351
352352 worksheet .write (
353- KEY_START_ROW + 4 , 0 , "Predicted False Positives =" , workbook .add_format ({"bold" : 1 })
353+ KEY_START_ROW + 4 , 0 , "Predicted Non Issues =" , workbook .add_format ({"bold" : 1 })
354354 )
355355 worksheet .write (
356356 KEY_START_ROW + 4 ,
357357 1 ,
358- "AI Predicted as not a real issue (false positive )" ,
358+ "AI Predicted as not a real issue (non issues )" ,
359359 workbook .add_format ({"italic" : 1 }),
360360 )
361361
0 commit comments