Max

Results 1 comments of Max

from math import exp #log odds to probs def logit2prob(logit): odds = exp(logit) prob = odds / (1 + odds) return(prob) #shap_values converter def shap_log2pred_converter(shap_values): return([(logit2prob(x)-0.5) for x in shap_values])...