Below is my code and for Cox regression penalizer. I have 2 questions.
1)I can't see the plot and legends cover up the plot.How can I remove it or move it to the right?
2)How can I choose the best penalizer value?
Thank you.
from lifelines import CoxPHFitter
results = {}
for p in np.linspace(0.001, 1, 40):
cph = CoxPHFitter(l1_ratio=1., penalizer=p).fit(df_churn.loc[:, features_keep], "Abonelik
Ömrü", "Kayıp")
results[p] = cph.params_
pd.DataFrame(results).T.plot()