Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

library issue : DataDrift,DataQuality #432

Closed
IITGoaPyVidya opened this issue Oct 31, 2022 · 8 comments
Closed

library issue : DataDrift,DataQuality #432

IITGoaPyVidya opened this issue Oct 31, 2022 · 8 comments

Comments

@IITGoaPyVidya
Copy link

Hello community,

when I try to import libraries

  1. from evidently.metric_preset import DataDrift, NumTargetDrift
  2. from evidently.test_preset import DataQuality, DataStability

I am getting following error

  1. cannot import name 'DataDrift' from 'evidently.metric_preset'
  2. cannot import name 'DataQuality' from 'evidently.test_preset'

this was just example notebook from evidently.

Any suggestions are highly appreciated.

thanks,

@elenasamuylova
Copy link
Collaborator

Hi @IITGoaPyVidya! There was an update to the names of the presets last week, as we now have both Metric presets and Test presets. https://github.com/evidentlyai/evidently/releases/tag/v0.1.59.dev0

Here is the Getting Started tutorial (with updated API): https://github.com/evidentlyai/evidently/blob/main/examples/sample_notebooks/getting_started_tutorial.ipynb

Here are all test presets:
https://github.com/evidentlyai/evidently/blob/main/examples/sample_notebooks/evidently_test_presets.ipynb

Here are all metric presets
https://github.com/evidentlyai/evidently/blob/main/examples/sample_notebooks/evidently_metric_presets.ipynb

In your case, you need to import for Metric Presets:
from evidently.metric_preset import DataDriftPreset
from evidently.metric_preset import TargetDriftPreset

For Test Presets:
from evidently.test_preset import DataStabilityTestPreset
from evidently.test_preset import DataQualityTestPreset

@elenasamuylova
Copy link
Collaborator

We should have updated all the examples in the documentation but could have overlooked something. Could you point to the example notebook you refer to? We'll update it as well!

@IITGoaPyVidya
Copy link
Author

@elenasamuylova Thanks for timely response!

I renamed those import statements now its working fine. I was referring getting started tutorial. that colab notebook is yet to be updated as per new changes.

However this is all for structured data, I want to analyse drift for unstructured data, is there any guidebook on this?

@elenasamuylova
Copy link
Collaborator

elenasamuylova commented Oct 31, 2022

Hi @IITGoaPyVidya, thanks - we will update that one soon.

Unfortunately, right now, Evidently only natively supports tabular data inputs. As a workaround, some users feed embeddings in the tools, but it can be hard to interpret.

@elenasamuylova
Copy link
Collaborator

Do you have text or image data?

@IITGoaPyVidya
Copy link
Author

I have text data, I will be working around NLP

@elenasamuylova
Copy link
Collaborator

Thanks for clarifying! We plan to add support for the text data next, but right now, there is no dedicated implementation yet.

@elenasamuylova
Copy link
Collaborator

@IITGoaPyVidya, you can also have a look at this example notebook #427 (work in progress, I believe) by @SangamSwadiK where he demonstrates exactly the idea of how you can feed text data in Evidently right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants