aito.client.v2.responses.V2EvaluationResponse
- class aito.client.v2.responses.V2EvaluationResponse(json: Dict)
Bases:
V2ResponseAn
evaluationresponse — the metrics of a held-out evaluation- Parameters:
json (Dict) – the parsed JSON response
Methods
Attributes
the share of test rows whose top prediction was correct
the accuracy of always predicting the most common value
the per-case results, when
caseswas selectedthe metrics
which engine answered, if the client requested
metathe raw JSON response
the result kind this response class represents
the response metadata, empty unless the client was built with
meta=Truethe number of rows held out and predicted
the number of rows Aito learned from during the evaluation
the non-fatal notes the engine attached to this response
- property accuracy: float
the share of test rows whose top prediction was correct
- Return type:
float
- property base_accuracy: float
the accuracy of always predicting the most common value
The number
accuracyhas to beat to mean anything.- Return type:
float
- property cases: List[Dict]
the per-case results, when
caseswas selected- Return type:
List[Dict]
- property data: Dict
the metrics
- Return type:
Dict
- property engine: str | None
which engine answered, if the client requested
meta- Return type:
Optional[str]
- property json: Dict
the raw JSON response
- Return type:
Dict
- kind: str = 'evaluation'
the result kind this response class represents
- property meta: Dict
the response metadata, empty unless the client was built with
meta=TrueCurrently carries
engine—v2for a collection served by the rep2 engine,v1for a legacy table served by the compatibility shim.- Return type:
Dict
- property test_sample_count: int
the number of rows held out and predicted
- Return type:
int
- property train_sample_count: int
the number of rows Aito learned from during the evaluation
- Return type:
int
- property warnings: List[V2Warning]
the non-fatal notes the engine attached to this response
Empty for the great majority of responses. Worth checking when a result is unexpectedly broad or unexpectedly empty — the engine reports a
whereit could not apply here rather than failing the request.- Return type:
List[V2Warning]