lifetimes icon indicating copy to clipboard operation
lifetimes copied to clipboard

Add model name used in generated plots

Open Samanvay96 opened this issue 6 years ago • 4 comments

Context

Currently, I'm using three models for CLV analysis and generating calibration_purchases_vs_holdout_purchases for comparison. I thought that it might be a good idea to display the model name in the chart title for additional differentiation. Any thoughts?

If this sounds good. I will go ahead and make the necessary changes.

Samanvay96 avatar Nov 06 '18 01:11 Samanvay96

Heya, I think I know what you mean, but do you have a screenshot of your idea?

CamDavidsonPilon avatar Nov 06 '18 02:11 CamDavidsonPilon

We could and might do that in the future, but you already can kind of do that by customizing the title of the plot. You could also use labels and plt.legend().

psygo avatar Aug 21 '19 11:08 psygo

I am interested in this as well. I forked the library and made the update in my own copy. @psygo, could you provide an example of how we can customize the title of the plot through the lifetimes library as-is? Thank you.

nicknelson1021 avatar Mar 31 '22 18:03 nicknelson1021

@Samanvay96 , I got it to work with the following code:

plot_calibration_purchases_vs_holdout_purchases(
    model=bgf_monthly_train,
    calibration_holdout_matrix=cal_holdout_monthly).title.set_text('hi')

nicknelson1021 avatar Mar 31 '22 18:03 nicknelson1021