class
InferenceResult:
InferenceResult(gql_client: Union[gql.client.Client, NoneType], data: Dict[str, Any])
Initializes an InferenceResult.
Parameters
- gql.Client gql_client: GQL client that this can pass to created objects.
- Dict[str, Any] data: Response parsed from JSON inference result body.
def
data(self) -> List[numpy.ndarray]:
Returns the inference result data.
def
model_version(self) -> Tuple[str, str]:
Returns the model this inference was generated by.
def
time_elapsed(self) -> datetime.timedelta:
Returns the total time taken by the engine.
def
timestamp(self) -> datetime.datetime:
Returns the time at which this inference occurred.
def
shadow_data(self) -> Union[Dict[str, numpy.ndarray], NoneType]: