ChatGPT can be extremly helpful to find bugs

Disclaimer: i found it myself before I tried ChatGPT.

My problem in lab2 was that I used pp_val to represent prediction instead of prediction as the hint suggested. Therefore, in the following codes, i used p_val instead of pp_val to calculate tp, fp etc. It obvious returned wrong answers.

I’m trying to see if ChatGPT can find the bug. And it did! I would think it can save tons of time to debug (or evan write code). Will it be considered a violation of honor code?

Please do not. You’re only to submit your own work for grading.

1 Like