Retrieve an outcome's analysis
https://api.faraday.ai/v1/outcomes/{outcome_id}/analysisGet details on a specific outcome's analysis report on model performance, bias, etc.
Authentication
Provide your API key in the Authorization header. You can find your API key in the Settings page of the dashboard.
Authorization: Bearer YOUR_TOKENpath parameters
The UUID of an outcome
Responses
200Information about the outcome analysis
biasobjectInformation about the various types of bias for an outcome.
The measurements for each type of bias are taken with respect to
subpopulations of sensitive dimensions whose priority
can be increa...
strategiesarray[object]When an Outcome is being built, many "strategies" are employed to produce candidate models. After cross-validation, the best models resulting from, therefore, the best strategies are promoted to produ...
tenure_featuresobjecttenure_performancesobjectThe performance metrics by data source, broken down further by tenure ranges, for an outcome.
400The request was invalid.
A Faraday error code.
Some possible values include:
Generic HTTP Errors
- BAD_REQUEST: The request could not be validated.
- FORBIDDEN: You do not have permission to access the specified resour...
"ERROR_TYPE"BAD_REQUEST, FORBIDDEN, MAX_RESOURCES_REACHED, INTERNAL_SERVER_ERROR, INVALID_AUTHORIZATION, NOT_FOUND, MALFORMED_API_KEY, MISSING_API_KEY, EXPIRED_API_KEY, VALIDATION_FAILED, CONFLICTA unique ID for this error. Please include this in bug reports.
"082f9513-901c-4308-8081-902a8fe22d7e"validationErrorsarray[object]JSON Schema validation errors, if any.
401No API key was supplied.
A Faraday error code.
Some possible values include:
Generic HTTP Errors
- BAD_REQUEST: The request could not be validated.
- FORBIDDEN: You do not have permission to access the specified resour...
"ERROR_TYPE"BAD_REQUEST, FORBIDDEN, MAX_RESOURCES_REACHED, INTERNAL_SERVER_ERROR, INVALID_AUTHORIZATION, NOT_FOUND, MALFORMED_API_KEY, MISSING_API_KEY, EXPIRED_API_KEY, VALIDATION_FAILED, CONFLICTA unique ID for this error. Please include this in bug reports.
"082f9513-901c-4308-8081-902a8fe22d7e"validationErrorsarray[object]JSON Schema validation errors, if any.
403Access to this resource was forbidden.
A Faraday error code.
Some possible values include:
Generic HTTP Errors
- BAD_REQUEST: The request could not be validated.
- FORBIDDEN: You do not have permission to access the specified resour...
"ERROR_TYPE"BAD_REQUEST, FORBIDDEN, MAX_RESOURCES_REACHED, INTERNAL_SERVER_ERROR, INVALID_AUTHORIZATION, NOT_FOUND, MALFORMED_API_KEY, MISSING_API_KEY, EXPIRED_API_KEY, VALIDATION_FAILED, CONFLICTA unique ID for this error. Please include this in bug reports.
"082f9513-901c-4308-8081-902a8fe22d7e"validationErrorsarray[object]JSON Schema validation errors, if any.
404The requested resource ID was not found.
A Faraday error code.
Some possible values include:
Generic HTTP Errors
- BAD_REQUEST: The request could not be validated.
- FORBIDDEN: You do not have permission to access the specified resour...
"ERROR_TYPE"BAD_REQUEST, FORBIDDEN, MAX_RESOURCES_REACHED, INTERNAL_SERVER_ERROR, INVALID_AUTHORIZATION, NOT_FOUND, MALFORMED_API_KEY, MISSING_API_KEY, EXPIRED_API_KEY, VALIDATION_FAILED, CONFLICTA unique ID for this error. Please include this in bug reports.
"082f9513-901c-4308-8081-902a8fe22d7e"validationErrorsarray[object]JSON Schema validation errors, if any.
500An internal server error occurred.
A Faraday error code.
Some possible values include:
Generic HTTP Errors
- BAD_REQUEST: The request could not be validated.
- FORBIDDEN: You do not have permission to access the specified resour...
"ERROR_TYPE"BAD_REQUEST, FORBIDDEN, MAX_RESOURCES_REACHED, INTERNAL_SERVER_ERROR, INVALID_AUTHORIZATION, NOT_FOUND, MALFORMED_API_KEY, MISSING_API_KEY, EXPIRED_API_KEY, VALIDATION_FAILED, CONFLICTA unique ID for this error. Please include this in bug reports.
"082f9513-901c-4308-8081-902a8fe22d7e"validationErrorsarray[object]JSON Schema validation errors, if any.
Tags
Test request
Request snippet
curl -X GET 'https://api.faraday.ai/v1/outcomes/{outcome_id}/analysis' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer YOUR_API_KEY'Example response
{
"bias": {
"data": {
"age": {
"candidates": [
{
"x": 0,
"y": 0
}
],
"level": "low_bias",
"negatives": [
{
"x": 0,
"y": 0
}
],
"positives": [
{
"x": 0,
"y": 0
}
]
},
"gender": {
"candidates": [
{
"x": "string",
"y": 0
}
],
"level": "low_bias",
"negatives": [
{
"x": "string",
"y": 0
}
],
"positives": [
{
"x": "string",
"y": 0
}
]
}
},
"fairness": [
{
"dimensions": [
"string"
],
"metrics": [
{
"level": "string",
"name": "string",
"value": 0
}
],
"values": [
"string"
]
}
],
"power": [
{
"dimensions": [
"string"
],
"metrics": [
{
"level": "string",
"name": "string",
"value": 0
}
],
"values": [
"string"
]
}
],
"predictions": [
{
"dimensions": [
"string"
],
"metrics": [
{
"level": "string",
"name": "string",
"value": 0
}
],
"values": [
"string"
]
}
],
"summary": {
"data_unbiased": true,
"fairness_fair": true,
"power_unbiased": true,
"predictions_unbiased": true
}
},
"overall_features": {
"all_individuals": [
{
"directionality": [
{
"data_type": "boolean",
"density": 0.75,
"impact": 0,
"value": true
}
],
"importance": 0,
"literate": "string",
"name": "string"
}
],
"recognized_individuals": [
{
"directionality": [
{
"data_type": "boolean",
"density": 0.75,
"impact": 0,
"value": true
}
],
"importance": 0,
"literate": "string",
"name": "string"
}
],
"unrecognized_individuals": [
{
"directionality": [
{
"data_type": "boolean",
"density": 0.75,
"impact": 0,
"value": true
}
],
"importance": 0,
"literate": "string",
"name": "string"
}
]
},
"overall_performance": {
"all_individuals": {
"lift_curve": [
{
"x": 0.1,
"y": 0.75,
"y_max": 0.76,
"y_min": 0.74
}
],
"lift_table": {
"headers": [
"string"
],
"rows": [
[
"string"
]
]
},
"lift_value": 1.425,
"metrics_table": {
"headers": [
"string"
],
"rows": [
[
"string"
]
]
},
"roc_auc": 0.75,
"roc_curve": [
{
"x": 0.5,
"y": 0.75
}
],
"strategy_id": "b80217ae-7628-4c66-8a19-5bf452495c39",
"tenure_end": 60,
"tenure_start": 30
},
"recognized_individuals": {
"lift_curve": [
{
"x": 0.1,
"y": 0.75,
"y_max": 0.76,
"y_min": 0.74
}
],
"lift_table": {
"headers": [
"string"
],
"rows": [
[
"string"
]
]
},
"lift_value": 1.425,
"metrics_table": {
"headers": [
"string"
],
"rows": [
[
"string"
]
]
},
"roc_auc": 0.75,
"roc_curve": [
{
"x": 0.5,
"y": 0.75
}
],
"strategy_id": "b80217ae-7628-4c66-8a19-5bf452495c39",
"tenure_end": 60,
"tenure_start": 30
},
"unrecognized_individuals": {
"lift_curve": [
{
"x": 0.1,
"y": 0.75,
"y_max": 0.76,
"y_min": 0.74
}
],
"lift_table": {
"headers": [
"string"
],
"rows": [
[
"string"
]
]
},
"lift_value": 1.425,
"metrics_table": {
"headers": [
"string"
],
"rows": [
[
"string"
]
]
},
"roc_auc": 0.75,
"roc_curve": [
{
"x": 0.5,
"y": 0.75
}
],
"strategy_id": "b80217ae-7628-4c66-8a19-5bf452495c39",
"tenure_end": 60,
"tenure_start": 30
}
},
"strategies": [
{
"description": "string",
"experimental": false,
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "string",
"providers": [
"self"
],
"slug": "string"
}
],
"tenure_features": {
"all_individuals": [
{
"features": [
{
"directionality": [
{
"data_type": "boolean",
"density": 0.75,
"impact": 0,
"value": true
}
],
"importance": 0,
"literate": "string",
"name": "string"
}
],
"tenure_end": 60,
"tenure_start": 30
}
],
"recognized_individuals": [
{
"features": [
{
"directionality": [
{
"data_type": "boolean",
"density": 0.75,
"impact": 0,
"value": true
}
],
"importance": 0,
"literate": "string",
"name": "string"
}
],
"tenure_end": 60,
"tenure_start": 30
}
],
"unrecognized_individuals": [
{
"features": [
{
"directionality": [
{
"data_type": "boolean",
"density": 0.75,
"impact": 0,
"value": true
}
],
"importance": 0,
"literate": "string",
"name": "string"
}
],
"tenure_end": 60,
"tenure_start": 30
}
]
},
"tenure_performances": {
"all_individuals": [
{
"lift_curve": [
{
"x": 0.1,
"y": 0.75,
"y_max": 0.76,
"y_min": 0.74
}
],
"lift_table": {
"headers": [
"string"
],
"rows": [
[
"string"
]
]
},
"lift_value": 1.425,
"metrics_table": {
"headers": [
"string"
],
"rows": [
[
"string"
]
]
},
"roc_auc": 0.75,
"roc_curve": [
{
"x": 0.5,
"y": 0.75
}
],
"strategy_id": "b80217ae-7628-4c66-8a19-5bf452495c39",
"tenure_end": 60,
"tenure_start": 30
}
],
"recognized_individuals": [
{
"lift_curve": [
{
"x": 0.1,
"y": 0.75,
"y_max": 0.76,
"y_min": 0.74
}
],
"lift_table": {
"headers": [
"string"
],
"rows": [
[
"string"
]
]
},
"lift_value": 1.425,
"metrics_table": {
"headers": [
"string"
],
"rows": [
[
"string"
]
]
},
"roc_auc": 0.75,
"roc_curve": [
{
"x": 0.5,
"y": 0.75
}
],
"strategy_id": "b80217ae-7628-4c66-8a19-5bf452495c39",
"tenure_end": 60,
"tenure_start": 30
}
],
"unrecognized_individuals": [
{
"lift_curve": [
{
"x": 0.1,
"y": 0.75,
"y_max": 0.76,
"y_min": 0.74
}
],
"lift_table": {
"headers": [
"string"
],
"rows": [
[
"string"
]
]
},
"lift_value": 1.425,
"metrics_table": {
"headers": [
"string"
],
"rows": [
[
"string"
]
]
},
"roc_auc": 0.75,
"roc_curve": [
{
"x": 0.5,
"y": 0.75
}
],
"strategy_id": "b80217ae-7628-4c66-8a19-5bf452495c39",
"tenure_end": 60,
"tenure_start": 30
}
]
}
}