I want to write a Python code that will compute the confusion matrix at every threshold (from 0 to 1). The requirements of the code are as mentioned below: