Implement a function precision_recall_at_threshold(y_true, y_scores, threshold) that computes the precision and recall of a binary classifier at a given decision threshold.
Inputs:
y_true: list of true binary labels (0 or 1)y_scores: list of predicted probabilities or scores in [0, 1] for the positive classthreshold: float in [0, 1]; a sample is predicted positive if its score is >= thresholdOutput: a list [precision, recall] where each value is a float rounded to 4 decimal places.
Edge cases:
0.0.y_true, define recall as 0.0.Return the result as a Python list of two floats.