What is the difference between partial fit and warm start?

前端 未结 4 1499
闹比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条回答
  •  猫巷女王i
    2021-02-01 22:00

    About difference. Warm start it just an attribute of class. Partial fit it is method of this class. It's basically different things.

    About same functionalities. Yes, partial fit will use self.coef_ because it still needed to get some values to update on training period. And for empty coef_init we just put zero values to self.coef_ and go to the next step of training.

    Description.

    For first start: Whatever how (with or without warm start). We will train on zero coefficients but in result we will save average of our coefficients.

    N+1 start:

    With warm start. We will check via method _allocate_parameter_mem our previous coefficients and take it to train. In result save our average coefficients.

    Without warm start. We will put zero coefficients (as first start) and go to training step. In result we will still write average coefficients to memory.

提交回复
热议问题