Skip to content
DeepForgeby svx
All problems
EasyComputer Visioncv-264

PTQ vs QAT Accuracy Delta

Problem

Compute the accuracy improvement of quantization-aware training over post-training quantization.

Return round(qat_accuracy - ptq_accuracy, 4).

Test cases

case 1
in: [0.71,0.7523]
expected: 0.0423
case 2
in: [0.9,0.9]
expected: 0
case 3
in: [0.6,0.55]
expected: -0.05
Starter codePython
def ptq_qat_delta(ptq_accuracy, qat_accuracy):
    # Your code here
    pass

3 test cases · run your code against them in the editor