You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This pull request introduces a new Jupyter notebook, understand_utilize_rawdata.ipynb, which provides a comprehensive guide on how to understand and utilize the RawData feature in ValidMind tests. The notebook includes setup instructions, usage examples, and custom test creation using RawData. It demonstrates how to access, inspect, and utilize RawData for creating custom outputs such as ROC curves, Pearson Correlation Matrices, and Precision-Recall Curves.
Additionally, the PR enhances the validmind/utils.py module by improving the handling of generic objects. The handle_generic_object method now includes a try-except block to safely return the class name of an object, and the default method has been added to provide a preview of DataFrame objects, including their type, a preview of the first five rows, and their shape. This enhancement improves the robustness and readability of object handling within the ValidMind library.
Test Suggestions
Run the Jupyter notebook to ensure all cells execute without errors and produce the expected outputs.
Test the RawData feature by creating custom tests and verifying the output customization using the provided examples.
Verify the new default method in validmind/utils.py correctly handles DataFrame objects by returning the expected preview and shape information.
Test the handle_generic_object method to ensure it correctly returns the class name of various object types, including those without a __str__ method.
The reason will be displayed to describe this comment to others. Learn more.
Thanks John! I cleaned up the notebook, applied our style guidelines, and moved it into how_to. Once this PR is merged I'll also wrap the notebook into our docs site.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
choreChore tasks that aren't bugs or new featuresdocumentationImprovements or additions to documentationinternalNot to be externalized in the release notes
2 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Internal Notes for Reviewers
Adding a notebook to directly demo the new Raw Data feature as well as a quick fix to better display raw data via the
inspect()function.External Release Notes