Are training data saved in fitted model object? #1538
-
Beta Was this translation helpful? Give feedback.
Answered by
CamDavidsonPilon
Jul 6, 2023
Replies: 1 comment 3 replies
-
|
Hi @hiroki32, No, the raw training data is not part of the model, normally. Pieces of the training data are, like the durations, etc. that may contain the original index. You can try adding the training data to the model before picking: cph.df = df
with open('fitted_cph_model.pickle', mode='wb') as f:
pickle.dump(cph, f) |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

I understand. I missed your comment about not wanting to include them. I said
Normallyas you can choose to add it, as in my example.The durations, censored values, index names, etc. are included on the model.