POST
/ratchet/demo/teacher-drift
const url = 'http://localhost:8000/ratchet/demo/teacher-drift?noise=0.15';const options = {method: 'POST'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”noise
Noise
number
Responses
Section titled “Responses”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>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example" } ]}