From 6820abd67f102da88e6b24d1f1cc61a9040c55cc Mon Sep 17 00:00:00 2001 From: Patrick Cox Date: Thu, 15 Nov 2018 10:36:04 -0500 Subject: [PATCH] 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. --- samples/python/letter_recog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/python/letter_recog.py b/samples/python/letter_recog.py index d4987369bc..b519379a8f 100755 --- a/samples/python/letter_recog.py +++ b/samples/python/letter_recog.py @@ -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)