更新Pycaret异常检测模型

发布于 2025-02-11 08:30:23 字数 626 浏览 0 评论 0原文

我正在使用Pycaret检测时间序列数据中的异常。我正在每次呼叫中获取数据,检测和返回。一切都很好,但是在提高性能时,我计划加载保存的模型,用更少的数据对其进行重新培训(例如,每天而不是一次获得1000天的数据)并再次保存模型。在这里,它的性能增加了很多,因为它仅在较少的数据上进行培训。

问题是更新/重新培训模型。我找不到更新模型的任何方法。

Base Initially:
setup(dataframe)
model=createmodel(modelName)
results=assign_model(model)

我想做的。

try loading the model if already present.
setup(data_frame_new)
if model.exists:
    retrain_model
else:
    model=createmodel(modelName)
save_model(model)
results=assign_model(model)

因此,现在我已经训练了模型和新数据,如何将两者集成在一起。 有什么方法可以重新训练模型吗?到目前为止,我看不到任何文档。 或者我可能已经忽略了。请提出您的宝贵评论,让我知道如何实现这一目标。

I'm detecting anomalies in a time series data using pycaret. I'm taking in the data at every call, detecting and returning it. Everything is fine, but when coming to improving the performance, I'm planning to load the saved model, re-train it with less data(say daily instead of getting some 1000 days of data at once) and save the model again. Here its performance increases a lot, as it is training on only less data.

The problem is to update/re-train the model. I couldn't find any method to update the model.

Base Initially:
setup(dataframe)
model=createmodel(modelName)
results=assign_model(model)

What I'm trying to do.

try loading the model if already present.
setup(data_frame_new)
if model.exists:
    retrain_model
else:
    model=createmodel(modelName)
save_model(model)
results=assign_model(model)

So, now I have trained model and new data, how can I integrate both.
Is there any way to retrain the model? I couldn't see any documentation on that so far.
Or I might have overlooked. Please put forth your valuable comments to let me know how to achieve this.

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

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

发布评论

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