Skip to main content

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

  • February 15, 2023
  • 8 replies
  • 130 views

Forum|alt.badge.img+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

Forum|alt.badge.img+6
  • Cognite Academy Instructor
  • 61 replies
  • February 15, 2023

Hi Jaydeep, 

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

Regards 
Kumar


Forum|alt.badge.img+6
  • Author
  • Committed
  • 14 replies
  • February 15, 2023

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


Forum|alt.badge.img+6
  • Cognite Academy Instructor
  • 61 replies
  • February 17, 2023

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


Forum|alt.badge.img+6
  • Author
  • Committed
  • 14 replies
  • February 17, 2023

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


  • Practitioner
  • 4 replies
  • February 17, 2023

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
  • 4 replies
  • February 20, 2023

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

Nils


Forum|alt.badge.img+6
  • Author
  • Committed
  • 14 replies
  • February 20, 2023

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


Forum|alt.badge.img+6
  • Author
  • Committed
  • 14 replies
  • February 20, 2023

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


Cookie Policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings