Explainability REST API Guide

Fetch slice query

post

Parse slice query data

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
model_idstring · uuidRequired
querystringRequired
Responses
200

Successfully parsed slice query

application/json
Responseall of
post
/v3/slice-query/parse

Fetch slice query

post

Fetch slice query data

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
model_idstring · uuidRequired
querystringRequired
samplebooleanOptional
max_rowsinteger · min: 1 · max: 10000Optional
columnsstring[]Optional
Responses
200

Slice query data fetch successful

application/json
Responseall of
post
/v3/slice-query/fetch

Get feature impact

post

Get feature impact for the given environment or a slice query

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body

Feature Impact api request body

data_sourceone ofRequired

Feature Impact api data sources

or
or
model_idstring · uuidRequired

Unique ID of model.

num_refsinteger · min: 1 · max: 1000000Optional

Number of reference points used in the explanations. Only for non text inputs

num_iterationsinteger · min: 1 · max: 100000Optional

The maximum number of ablated model inferences per feature. Only for non text inputs

ci_levelnumber · max: 1Optional

The confidence interval level (between 0 and 1) to use for all confidence intervals computed. Only for non text inputs

min_supportinteger · min: 1Optional

Specify a minimum support to retrieve top words. Only for Text data (NLP models)

output_columnsstring[]Optional

Only used for NLP (TEXT inputs) models. Output column names to compute feature impact on. If None, use all.

ref_env_idstring · uuidOptional

environment to use for the reference dataset.

Responses
200

Feature Impact ran successfully on the given data

application/json
Responseall of
post
/v3/analytics/feature-impact

Get feature importance

post

Get feature importance for the given environment or a slice query

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
data_sourceone ofRequired
or
or
model_idstring · uuidRequired
num_refsinteger · min: 1 · max: 1000000Optional

Number of reference points used in the explanations

num_iterationsinteger · min: 1 · max: 100000Optional

The maximum number of ablated model inferences per feature

ci_levelnumber · max: 1Optional

The confidence interval level (between 0 and 1) to use for all confidence intervals computed

ref_env_idstring · uuidOptional

environment to use for the reference dataset.

Responses
200

Feature Importance ran successfully on the given data

application/json
Responseall of
post
/v3/analytics/feature-importance

Get model scores

post

Get model scores for the given environment or a slice query

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
data_sourceone ofRequired
or
or
model_idstring · uuidRequired

Model uuid

binary_thresholdnumber · max: 1Optional

Threshold for binary classification models

top_kinteger · min: 1 · max: 500Optional

Top K for ranking models

Responses
200

Scoring ran successfully on the given data

application/json
Responseall of
post
/v3/analytics/scores

Update precomputed feature impact

put

Compute and update cached feature impact on an environment

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body

Request body for precompute feature impact

model_idstring · uuidRequired

Unique identifier for model.

env_idstring · uuidRequired

Unique identifier for environment.

env_typestringRequired

Type of environment. Either PRE_PRODUCTION or PRODUCTION.

num_refsinteger · min: 1 · max: 1000000Optional

Number of reference points used in the explanations

num_iterationsinteger · min: 1 · max: 100000Optional

The maximum number of ablated model inferences per feature

ci_levelnumber · max: 1Optional

The confidence interval level (between 0 and 1) to use for all confidence intervals computed

min_supportinteger · min: 1Optional

Used for TEXT models to specify a minimum support (number of times a specific work was present in the sample data) to retrieve top words. Default to 15.

Responses
200

Feature impact pre-computation update ran successfully on the given data

application/json
Responseall of
put
/v3/analytics/precompute-feature-impact

Precompute feature impact

post

Compute and cache feature impact on an environment

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body

Request body for precompute feature impact

model_idstring · uuidRequired

Unique identifier for model.

env_idstring · uuidRequired

Unique identifier for environment.

env_typestringRequired

Type of environment. Either PRE_PRODUCTION or PRODUCTION.

num_refsinteger · min: 1 · max: 1000000Optional

Number of reference points used in the explanations

num_iterationsinteger · min: 1 · max: 100000Optional

The maximum number of ablated model inferences per feature

ci_levelnumber · max: 1Optional

The confidence interval level (between 0 and 1) to use for all confidence intervals computed

min_supportinteger · min: 1Optional

Used for TEXT models to specify a minimum support (number of times a specific work was present in the sample data) to retrieve top words. Default to 15.

Responses
200

Feature impact pre-computation ran successfully on the given data

application/json
Responseall of
post
/v3/analytics/precompute-feature-impact

Get precomputed feature impact

post

Get precomputed feature impact for a model

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
model_idstring · uuidRequired

Unique identifier for the model.

Responses
200

Precomputed Feature impact retrieval ran successfully on the given data

application/json
Responseall of
post
/v3/analytics/feature-impact/precomputed

Update precomputed feature importance

put

Compute and update cached feature importance on an environment

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
model_idstring · uuidRequired
env_idstring · uuidRequired
env_typestringRequired
num_refsinteger · min: 1 · max: 1000000Optional

Number of reference points used in the explanations

num_iterationsinteger · min: 1 · max: 100000Optional

The maximum number of ablated model inferences per feature

ci_levelnumber · max: 1Optional

The confidence interval level (between 0 and 1) to use for all confidence intervals computed

Responses
200

Feature importance pre-computation update ran successfully on the given data

application/json
Responseall of
put
/v3/analytics/precompute-feature-importance

Precompute feature importance

post

Compute and cache feature importance on an environment

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
model_idstring · uuidRequired
env_idstring · uuidRequired
env_typestringRequired
num_refsinteger · min: 1 · max: 1000000Optional

Number of reference points used in the explanations

num_iterationsinteger · min: 1 · max: 100000Optional

The maximum number of ablated model inferences per feature

ci_levelnumber · max: 1Optional

The confidence interval level (between 0 and 1) to use for all confidence intervals computed

Responses
200

Feature importance pre-computation ran successfully on the given data

application/json
Responseall of
post
/v3/analytics/precompute-feature-importance

Get precomputed feature importance

post

Get precomputed feature importance for a model

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
model_idstring · uuidRequired

Unique identifier for model.

Responses
200

Precomputed Feature importance retrieval ran successfully on the given data

application/json
Responseall of
post
/v3/analytics/feature-importance/precomputed
post

Get predictions from a model

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
model_idstring · uuidRequired
chunk_sizeintegerOptional
dataobject[]RequiredExample: {"CreditScore":619,"Geography":"France","Gender":"Female","Age":42,"Tenure":2,"Balance":0,"NumOfProducts":1,"HasCrCard":"Yes","IsActiveMember":"Yes","EstimatedSalary":101348.88}
Responses
200

Predictions ran successfully on the given data

application/json
Responseall of
post
/v3/predict

Last updated

Was this helpful?