samples(python): Updated use of model.load instances

The load() function returns a new object, and as such does not use the one it is called on.
This commit updates the uses of model.load in this program so it will work as intended and not throw an error.
This commit is contained in:
Patrick Cox 2018-11-15 10:36:04 -05:00 committed by Alexander Alekhin
parent 02d2cc58d7
commit 6820abd67f

View File

@ -41,7 +41,7 @@ class LetterStatModel(object):
train_ratio = 0.5
def load(self, fn):
self.model.load(fn)
self.model = self.model.load(fn)
def save(self, fn):
self.model.save(fn)