skip to content
promptdojo
_
[ save your spot ]
[ follow on x ]
Dataset schema validation for ML records — step 2 of 7
ch 14 · structured output
2/7
promptdojo
_
›
phase 03 · llm apis
›
ch 14 · structured output
lesson 3 of 3 · dataset schema validation for ml records
step 2 / 7
Which field should the schema validator reject?
1
id, because strings are never allowed.
2
label, because it is a string where the schema expects an int.
3
score, because floats are impossible in datasets.
4
nothing, because Python can print the row.
check
Show hint
Dataset schema validation for ML records — step 2 of 7
ch 14 · structured output
2/7
promptdojo
_
›
phase 03 · llm apis
›
ch 14 · structured output
lesson 3 of 3 · dataset schema validation for ml records
step 2 / 7
Which field should the schema validator reject?
1
id, because strings are never allowed.
2
label, because it is a string where the schema expects an int.
3
score, because floats are impossible in datasets.
4
nothing, because Python can print the row.
check
Show hint
park a thought