What is the difference between partial fit and warm start?

前端 未结 4 1489
闹比i
闹比i 2021-02-01 21:45

Context:

I am using Passive Aggressor from scikit library and confused whether to use warm start or partial fit.

Efforts hitherto

4条回答
  •  生来不讨喜
    2021-02-01 21:57

    First, let us look at the difference between .fit() and .partial_fit().

    .fit() would let you train from the scratch. Hence, you could think of this as a option that can be used only once for a model. If you call .fit() again with a new set of data, the model would be build on the new data and will have no influence of previous dataset.

    .partial_fit() would let you update the model with incremental data. Hence, this option can be used more than once for a model. This could be useful, when the whole dataset cannot be loaded into the memory, refer here.

    If both .fit() or .partial_fit() are going to be used once, then it makes no difference.

    warm_start can be only used in .fit(), it would let you start the learning from the co-eff of previous fit(). Now it might sound similar to the purpose to partial_fit(), but recommended way would be partial_fit(). May be do the partial_fit() with same incremental data few number of times, to improve the learning.

提交回复
热议问题