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

Can you add a save option for TestSuite it takes a very long time to load #375

Open
ManunEbo opened this issue Oct 10, 2022 · 4 comments
Open

Comments

@ManunEbo
Copy link

ManunEbo commented Oct 10, 2022

I'm following the examples provided:

#dataset-level tests
data_integrity_dataset_tests = TestSuite(tests=[
TestNumberOfColumns(),
TestNumberOfRows(),
TestNumberOfNulls(),
TestShareOfNulls(),
TestNumberOfColumnsWithNulls(),
TestNumberOfRowsWithNulls(),
TestShareOfColumnsWithNulls(),
TestShareOfRowsWithNulls(),
TestNumberOfDifferentNulls(),
TestNumberOfConstantColumns(),
TestNumberOfEmptyRows(),
TestNumberOfEmptyColumns(),
TestNumberOfDuplicatedRows(),
TestNumberOfDuplicatedColumns(),
TestColumnsType(),

])

data_integrity_dataset_tests.run(reference_data=adult_ref, current_data=adult_cur)
data_integrity_dataset_tests

This is taking forever to load, if a save to html option was available, It would be really useful.
I imagine, if I tried this on a much larger dataset, it would be problematic
Is there currently, a way to save TestSuite() output to html?

Regards

Elvy

@elenasamuylova
Copy link
Collaborator

Hi @ManunEbo, here is the complete documentation for tests: https://docs.evidentlyai.com/user-guide/tests-and-reports/run-tests#output-formats

You can indeed save an HTML, a JSON or export the results as a Python dictionary.

@elenasamuylova
Copy link
Collaborator

To export HTML as a separate file:
data_integrity_dataset_tests.save_html(“file.html”)

@ManunEbo
Copy link
Author

Thanks,
I looked at the documents earlier and didn't see the save_html
I was expecting a save("filename.html") which would have been consistent with the reports.

I digress ...

Thank you

@elenasamuylova
Copy link
Collaborator

elenasamuylova commented Oct 10, 2022

@ManunEbo, it will work the same way for Reports as it does for Test Suites - we are currently in the process of migrating reports to the new API: instead of Profile/Dashboard object, there is now a single Report object https://docs.evidentlyai.com/user-guide/tests-and-reports/get-reports. You can still use the old Dashboards/Profiles API in the meantime, but it will be depreciated after the migration is completed.

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