explain method
Perform an online explanation.
If
deployed_model_id
is specified, the corresponding DeployModel must have
explanation_spec
populated. If
deployed_model_id
is not specified, all DeployedModels must have
explanation_spec
populated.
Throws a http.ClientException if there were problems communicating with
the API service. Throws a ServiceException if the API method failed for
any reason.
Implementation
@override
Future<ExplainResponse> explain(ExplainRequest request) async {
if (isClosed) throw StateError('Service is closed');
if (_explain case final explain?) {
return explain(request);
}
throw UnsupportedError('explain');
}