ModelDataQuality View
Experimental
The Workbench View classes are currently in experimental mode so have fun but expect issues and API changes going forward.
MDQView Class: A View that computes various endpoint data quality metrics
MDQView
MDQView Class: A View that computes various endpoint data quality metrics
Common Usage
# Grab a FeatureSet and an Endpoint
fs = FeatureSet("abalone_features")
endpoint = Endpoint("abalone-regression-end")
# Create a ModelDataQuality View
mdq_view = MDQView.create(fs, endpoint=endpoint, id_column="id")
my_df = mdq_view.pull_dataframe(head=True)
# Query the view
df = mdq_view.query(f"SELECT * FROM {mdq_view.table} where residuals > 0.5")
Source code in src/workbench/core/views/mdq_view.py
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 |
|
create(fs, endpoint, id_column, use_reference_model=False)
classmethod
Create a Model Data Quality View with metrics
Parameters:
Name | Type | Description | Default |
---|---|---|---|
fs
|
FeatureSet
|
The FeatureSet object |
required |
endpoint
|
Endpoint
|
The Endpoint object to use for the target and features |
required |
id_column
|
str
|
The name of the id column (must be defined for join logic) |
required |
use_reference_model
|
bool
|
Use the reference model for inference (default: False) |
False
|
Returns:
Type | Description |
---|---|
Union[View, None]
|
Union[View, None]: The created View object (or None if failed) |
Source code in src/workbench/core/views/mdq_view.py
Questions?
The SuperCowPowers team is happy to answer any questions you may have about AWS and Workbench. Please contact us at workbench@supercowpowers.com or on chat us up on Discord