Hi,

Can you give use the full script that is used to load your model?

In that script, have you imported "my_analyzer"?

Best,

Gilles

On 15 January 2013 13:51, JAGANADH G <jagana...@gmail.com> wrote:
> 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.
>
>>>> 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
>
> ------------------------------------------------------------------------------
> Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS
> and more. Get SQL Server skills now (including 2012) with LearnDevNow -
> 200+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
> SALE $99.99 this month only - learn more at:
> http://p.sf.net/sfu/learnmore_122512
> _______________________________________________
> Scikit-learn-general mailing list
> Scikit-learn-general@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
>

------------------------------------------------------------------------------
Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS
and more. Get SQL Server skills now (including 2012) with LearnDevNow -
200+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only - learn more at:
http://p.sf.net/sfu/learnmore_122512
_______________________________________________
Scikit-learn-general mailing list
Scikit-learn-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to