Towards Data Science, Artificial Intelligence, TensorFlow, Machine Learning, Deep Learning.
__init__ initialises the object from the class. call function that gets executed when an object is instantiated from the class The init function gets the threshold and the call function gets the y_true and y_pred parameters that we sell previously. So we will declare threshold as a class variable,