In the code of the Learner
class in Basic_train
, the load
method start by performing a bunch of operations in place and ends by returning self
.
def load(self, ...)
...
return self
Is there a reason to both perform the loading in place and return the learner?
After doing :
learn = Learner(...)
Both
learn = learn.load(...)
and
learn.load(...)
seems to achieve the same result. Is there one of those to chose over the other? And if so, why?