Classify
Run classify wrangles on the specified columns. Requires WrangleWorks Account and Subscription.
Run a custom classification wrangle on the specified column or columns. A classification wrangle must be trained first.
Parameters
| Name | Description | Accepted Values | Default | Required |
|---|---|---|---|---|
| I/O | ||||
input | Name of the input column. | string, integer, array | — | Yes |
output | Name of the output column. | string, array | — | Yes |
| Formatting | ||||
include_confidence | For models that support it, include the confidence level in the output. | boolean | — | No |
| Conditions | ||||
if | Condition that determines whether the wrangle runs as a whole. Recipe variables may be referenced with ${variable}. | string | — | No |
where | Filter rows before applying the wrangle using SQL-like criteria, such as column1 = 123 OR column2 = 'abc'. | string | — | No |
where_params | Values used with where for parameterized criteria. Uses SQLite placeholder syntax such as ? or :name. | array, object | — | No |
| Details | ||||
model_id | ID of the classification model to be used. | string | — | Yes |
Examples
wrangles:
- classify:
input: Products
output: Category
model_id: ${model_id}
where: Products = Milk
| Products |
|---|
| Rice |
| Milk |
| Category |
|---|
| Dairy |
Access
| Requirement | Value |
|---|---|
| AI-powered | No |
| Requires WrangleWorks account | Yes |
| Requires subscription | No |
| Requires external API key | No |
Technical details
| Field | Value |
|---|---|
| Catalog ID | 71 |
| Catalog key | classify |
| Recipe key | classify |
| Catalog status | active |
| Lifecycle status | active |
| Recipe Writer eligible | Yes |
| Namespace | Root-level |
| Documentation group | ai |
| Aliases | None |
| Runtime symbol | wrangles.recipe_wrangles.main.classify |
| Legacy UUID | 06669ef8-cdd1-42f7-8078-98e0b7a42c30 |
Sources