riskResolveLabels method
Resolve the label in force for named events, as of each event's own horizon
Answers, for each named event, which assertion was in force AS OF that event's own horizon — and what disagreed with it. This is the join surface: the dataset materialiser calls it to attach ground truth to training rows, and the evaluator calls it to score a past decision against what was knowable when the decision had to be made. One mechanism for both, so a model can never be trained under one leakage rule and scored under another. Three answers are distinct and all three are honest: a resolved label, an event that has not matured, and a matured event nobody has judged. The last is never reported as unproductive.
Parameters:
- RiskResolveIn riskResolveIn (required):
Implementation
Future<RiskResolveOut?> riskResolveLabels(RiskResolveIn riskResolveIn,) async {
final response = await riskResolveLabelsWithHttpInfo(riskResolveIn,);
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
}
// When a remote server returns no body with a status of 204, we shall not decode it.
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
// FormatException when trying to decode an empty string.
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'RiskResolveOut',) as RiskResolveOut;
}
return null;
}