Skip to content
This repository was archived by the owner on Jan 10, 2025. It is now read-only.

Commit 14d9c4a

Browse files
use confidence in example
1 parent 3c0aa7c commit 14d9c4a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

autolabel

Submodule autolabel updated 54 files

docs/python-sdk.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,14 +194,14 @@ items = refuel_client.get_items(
194194
)
195195
```
196196

197-
2) Sort by label or confidence score from a labeling task. Note that this requires a task name and a subtask name to be specified.
197+
2) Sort by label or confidence score from a labeling task. Note that this requires a task name and a subtask name to be specified. `field` can be either 'label' or 'confidence'.
198198

199199
```python
200200
items = refuel_client.get_items(
201201
dataset='<DATASET NAME>',
202202
task='<LABELING TASK NAME>',
203203
max_items=100,
204-
order_by=[{'field': '<label or confidence>', 'direction': 'ASC', 'subtask': '<SUBTASK NAME>'}],
204+
order_by=[{'field': 'confidence', 'direction': '<ASC or DESC>', 'subtask': '<SUBTASK NAME>'}],
205205
)
206206
```
207207

0 commit comments

Comments
 (0)