Skip to main content
Seasoned ⭐️⭐️
Feb 15, 2023 10:57 AM UTC

While running model prediction getting ModelFailedException: EntityMatchingModel 3531921825900910 failed with error 'JobFailedException: AttributeError('TfidfVectorizer' object has no attribute 'get_feature_names')'

I am running the notebook for my own Cognite project as per the example https://github.com/cognitedata/dshub-tutorials/blob/master/advanced/Comparing%20Entity%20Matching%20models%20with%20SDK%20demo.ipynb

I am getting below error ModelFailedException: EntityMatchingModel 3531921825900910 failed with error 'JobFailedException: AttributeError('TfidfVectorizer' object has no attribute 'get_feature_names')' at line 

 

results = model.predict(

sources=time_series_test, targets=assets).result

    8 replies

    Cognite Academy Instructor
    Feb 15, 2023 1:29 PM UTC

    Hi Jaydeep, 

    Please can you mention the course or lesson link here.
    I am waiting to hearing back from you.

    Regards 
    Kumar

    Rahul Kumar
    jaydeepAuthor
    Seasoned ⭐️⭐️
    Feb 15, 2023 1:39 PM UTC

    This not in any particular course. We are trying to run the  entity matcher models to contextualize the assets and time series data in our project using python SDK. The below link contains the notebook for the same

    https://github.com/cognitedata/dshub-tutorials/blob/master/advanced/Comparing%20Entity%20Matching%20models%20with%20SDK%20demo.ipynb

    Cognite Academy Instructor
    Feb 17, 2023 9:37 AM UTC

    Hi Jaydeep, 

    I am in touch with the Data engineer and he is investigating the problem.
    We will get back soon.

    Thank you for your patience.

    Regards
    Kumar

    Rahul Kumar
    jaydeepAuthor
    Seasoned ⭐️⭐️
    Feb 17, 2023 9:46 AM UTC

    Sure , this error especially come for frequency-weighted-bigram and bigram-combo feature_type

    Practitioner ⭐️⭐️⭐️
    Feb 17, 2023 1:28 PM UTC

    Hi Jaydeep,

    This seems to be a bug on our side. We will roll out a fix soon and let you know when it’s ready.

    Sorry for the inconvenience!

    Nils

    Practitioner ⭐️⭐️⭐️
    Feb 20, 2023 10:00 AM UTC

    The fix should be rolled out now - let us know if you still have problems!

    Nils

    jaydeepAuthor
    Seasoned ⭐️⭐️
    Feb 20, 2023 10:06 AM UTC

    Please let me know the updated Cognite SDK version where this fix/patch is available

    jaydeepAuthor
    Seasoned ⭐️⭐️
    Feb 20, 2023 1:50 PM UTC

    Ok I confirm that with the same client version of python SDK , the error reported is not occurring now. We can close this issue, thanks