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

  • 15 February 2023
  • 8 replies
  • 112 views

Badge +6

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

Userlevel 2
Badge +6

Hi Jaydeep, 

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

Regards 
Kumar

Badge +6

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

Userlevel 2
Badge +6

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

Badge +6

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

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

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

Nils

Badge +6

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

Badge +6

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

Reply