简体   繁体   English

您是否需要存储旧数据以在sklearn中修改模型?

[英]Do you need to store your old data to refit a model in sklearn?

I am trying to use sklearn to build an Isolation Forest machine learning program to go through a ton of data. 我正在尝试使用sklearn来构建Isolation Forest机器学习程序来处理大量数据。 I can only store the past 10 days of data, so I was wondering: 我只能存储过去10天的数据,所以我想知道:

When I use the "fit" function on new data that comes in, does it refit the model considering the hyper-parameters from the old data without having had access to that old data anymore ? 当我对传入的新数据使用“拟合”功能时,是否考虑到旧数据中的超参数重新调整了模型, 而无需再访问该旧数据 Or is it completely recreating the model? 还是完全重建了模型?

In general, only the estimators implementing the partial_fit method are able to do this. 通常,只有实现partial_fit方法的估计器才能执行此操作。 Unfortunately, IsolationForest is not one of them. 不幸的是, IsolationForest不是其中之一。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 GridSearchCV & RandomizedSearchCV - 你在运行后改装 model - GridSearchCV & RandomizedSearchCV - do you refit the model after running 您是否需要在sklearn中缩放Vectorizer? - Do you need to scale Vectorizers in sklearn? sklearn:你需要为每组数据创建一个新的transformer实例吗? - sklearn: Do you need to create a new instance of a transformer for each set of data? 在 python 中使用 scipy.spatial.distance.cosine() 之前是否需要规范化数据? - Do you need to normalize your data before using scipy.spatial.distance.cosine() in python? 将 Python Statsmodel ARIMA 模型参数改装为新数据并进行预测 - Refit Python Statsmodel ARIMA model parameters to new data and predict 你如何在Peewee模型中存储列表? - How do you store list in Peewee model? 如果您创建自己的操作系统,是否需要制作自己的编译器/解释器来编写普通程序? - if you create your own OS , do you need to make your own compilers/interpreters to write normal programs? 为什么需要从 BaseException 派生自定义异常? - Why do you need to derive your custom exception from BaseException? 每次需要使用虚拟环境时都需要激活它吗? - Do you need to activate your virtual environment each time you need to use it? 为什么 sklearn cross_validate() 改装? - Why does sklearn cross_validate() refit?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM