Highest Confidence
Select the option with the highest confidence from multiple columns. Inputs are expected to be of the form [<<value>>, <<confidence_score>>].
Select the option with the highest confidence from multiple columns. Inputs are expected to be of the form [value, confidence_score].
Parameters
| Name | Description | Accepted Values | Default | Required |
|---|---|---|---|---|
| I/O | ||||
input | List of the input columns to select from. | array | — | Yes |
output | If two columns; the result and confidence. If one column; [result, confidence]. | string, array | — | Yes |
| 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 |
Examples
wrangles:
- select.highest_confidence:
input:
- Col1
- Col2
- Col3
output: Highest Confidence
| Col1 | Col2 | Col3 |
|---|---|---|
| ['A', 0.79] | ['B', 0.77] | ['C', 0.99] |
| Highest Confidence |
|---|
| ['C', 0.99] |
wrangles:
- select.highest_confidence:
input:
- Col1
- Col2
- Col3
output:
- Item
- Confidence
| Col1 | Col2 | Col3 |
|---|---|---|
| ['A', 0.79] | ['B', 0.77] | ['C', 0.99] |
| Item | Confidence |
|---|---|
| C | 0.99 |
Access
| Requirement | Value |
|---|---|
| AI-powered | No |
| Requires WrangleWorks account | No |
| Requires subscription | No |
| Requires external API key | No |
Technical details
| Field | Value |
|---|---|
| Catalog ID | 54 |
| Catalog key | select.highest_confidence |
| Recipe key | select.highest_confidence |
| Catalog status | active |
| Lifecycle status | active |
| Recipe Writer eligible | Yes |
| Namespace | select |
| Documentation group | select |
| Aliases | None |
| Runtime symbol | wrangles.recipe_wrangles.select.highest_confidence |
| Legacy UUID | 00aad85d-8cc8-42e5-86f3-e4ff916e8ac2 |
Sources