Skip to content

API & reference

Demo Teacher Drift

POST
/ratchet/demo/teacher-drift
curl --request POST \
--url 'http://localhost:8000/ratchet/demo/teacher-drift?noise=0.15'

Fault injection: from now on the mock teacher changes a label with probability noise (0 to 1; 0 makes it stable again), to show the teacher watch contest labels, freeze Night School (teacher_drift) and resume after POST /ratchet/teacher/ack.

noise
Noise
number
default: 0.15

Successful Response

Media typeapplication/json
Response Demo Teacher Drift Ratchet Demo Teacher Drift Post
object

Example generated

{}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string

Example generated

{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}