TabularPredictor.unpersist

TabularPredictor.unpersist(models='all') List[str][source]

取消内存中模型的持久化以减少内存使用。 如果模型没有在内存中持久化,每次请求进行预测时都会从磁盘加载。 注意:另一种重置预测器并取消模型持久化的方法是通过predictor = TabularPredictor.load(predictor.path)从磁盘重新加载预测器。

Parameters:

模型 (列表字符串字符串, 默认 = 'all') – 要取消持久化的模型名称。 如果为‘all’,则所有模型都将被取消持久化。 有效的模型可以通过调用predictor.model_names(persisted=True)在此predictor中列出。

Return type:

未持久化模型名称列表。