client_python/src/arize/utils/types.py at main · Arize-ai/client_python
GitHub
View Source on GitHub
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
View Source on GitHub
# Example features; features & tags can be optionally defined with typing
features = {
'state': 'ca',
'city': 'berkeley',
'merchant_name': 'Peets Coffee',
'pos_approved': TypedValue(value=False, type=ArizeTypes.INT),
'item_count': 10,
'merchant_type': 'coffee shop',
'charge_amount': TypedValue(value=20.11, type=ArizeTypes.FLOAT),
}
# example tags
tags = {
'age': 30,
'zip_code': '94610',
'device_os': 'iOS',
'server_node_id': TypedValue(value=12, type=ArizeTypes.INT),
}
| Field | Field Type | Description |
|---|---|---|
| value | Union[str, int, float, bool] | The feature or tag value to be cast. |
| type | ArizeTypes | The Arize feature or tag column type that value should be cast to. |
| Values |
|---|
INT |
FLOAT |
STR |
Was this page helpful?
Suggestions