如何预测熊猫数据框中的串联序列

发布于 2025-01-17 20:06:12 字数 343 浏览 5 评论 0原文

我有一个包含三列的数据:用户 ID、产品 ID 和购买日期。我需要预测用户-产品对的下一个购买日期。 数据集 我如何对该数据框进行预测? 我是机器学习方面的新手,需要您的帮助才能做到这一点。 谢谢。

DataFrame

我已经计算了每个产品-用户对的中间天数,并且我想通过预测下一个日期来计算下一个日期每个序列中的数字,即每次购买之间的天数。 我将“天数”分为“测试天数”和“目标天数”来训练模型。

I have a data that has three columns : user id, product id and date of purchase. I need to predict the next purchase date for User-Product pair.
DataSet
How can I make the prediction for this data frame?
I'm novice in machine learning and need your help for doing this.
Thanks.

DataFrame

I have calculated the intermediate days for each product-user pair, and I want to calculate the next date by predicting the next number in each sequence, which is the days between each purchase.
I split the "number days between" to `days test' and 'target' for training the model.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文