JAGANADH G
2013-01-15 12:51:31 UTC
Hi All,
I was trying to save and load a model (Text Classificaion with SVM) using
joblib. In the Vectorizer I used a custom analyzer called
"my_analyzer".Whwn I am trying to load the model with joblib it gives the
following error. Is there any way to incude my custom analyzer to the saved
model.
File "<stdin>", line 1, in <module>
File
"/usr/local/lib/python2.7/dist-packages/sklearn/externals/joblib/numpy_pickle.py",
line 418, in load
obj = unpickler.load()
File "/usr/lib/python2.7/pickle.py", line 858, in load
dispatch[key](self)
File "/usr/lib/python2.7/pickle.py", line 1090, in load_global
klass = self.find_class(module, name)
File "/usr/lib/python2.7/pickle.py", line 1126, in find_class
klass = getattr(mod, name)
AttributeError: 'module' object has no attribute 'my_analyzer'
Best regards
I was trying to save and load a model (Text Classificaion with SVM) using
joblib. In the Vectorizer I used a custom analyzer called
"my_analyzer".Whwn I am trying to load the model with joblib it gives the
following error. Is there any way to incude my custom analyzer to the saved
model.
joblib.load("Tw_SVM_Li.model")
Traceback (most recent call last):File "<stdin>", line 1, in <module>
File
"/usr/local/lib/python2.7/dist-packages/sklearn/externals/joblib/numpy_pickle.py",
line 418, in load
obj = unpickler.load()
File "/usr/lib/python2.7/pickle.py", line 858, in load
dispatch[key](self)
File "/usr/lib/python2.7/pickle.py", line 1090, in load_global
klass = self.find_class(module, name)
File "/usr/lib/python2.7/pickle.py", line 1126, in find_class
klass = getattr(mod, name)
AttributeError: 'module' object has no attribute 'my_analyzer'
Best regards
--
**********************************
JAGANADH G
http://jaganadhg.in
*ILUGCBE*
http://ilugcbe.org.in
**********************************
JAGANADH G
http://jaganadhg.in
*ILUGCBE*
http://ilugcbe.org.in