Commit 6820abd6 authored by Patrick Cox's avatar Patrick Cox Committed by Alexander Alekhin

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.
parent 02d2cc58
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment