We could include this preference into the model by defining the following loss function, This function penalizes the wrong prediction decreasing recall and that decreasing precision with  two weights c r and c p respectively.
we denote the loss function with c p /c r = 2 and that with c r /c p = 2 by p p and r p , respectively.