risk = model.predict_risk(X)
if use_log:
risk = np.log(risk)
However, if model.predict_risk(X) get inf values, when applying np.log(risk) the values will still being inf. Whereas, if they are caclulated with log from the begining, inf values will be less likely to appear.
Maybe use something like
The code currently works as follows:
However, if model.predict_risk(X) get inf values, when applying np.log(risk) the values will still being inf. Whereas, if they are caclulated with log from the begining, inf values will be less likely to appear. Maybe use something like