Version: 1.3.13

Navigate in Console

On this page you will learn about how to navigate through the Certifai Console pages.

Prerequisites

You have installed the Toolkit locally and/or have a platform implementation, and you have opened a local or remote Console window.

General navigation

NOTE: By way of example to illustrate navigation through the Console, this section will refer to the Banking: Loan Approval example reports provided with the Toolkit.

  1. When you open the Console window in your browser (Chrome is recommended) you will land on the Use Case list page.

    Use Case List

  2. Click the menu icon at the far right in the row of the Banking: Loan Approval example report. You have 2 options:

    • Click Scan List to display a list of scans that have been run for this use case.

      Scan List for Banking: Loan Approval example

    • Click Detail View to display a description and details for the selected use case.

      Use Case Details for Banking: Loan Approval example

  3. On the Use Case Detail page in the top left navigation list, you have two options:

    • Click the Scan List link to view a list of scans for the use case (see image in step 2).
    • Click the Model Use Cases link to return to the Use Case list (see image in step 1).
  4. From the Scan List page in a scan item row at the far right, click the menu icon to select one of two options:

    • Click Detail View to view the Scan Details page. Model Use Case information is shown across the top. Scan specific details like evaluation types, restrictions, predictions, models, and datasets are displayed below. At the top left is the navigation link list.

      Scan Detail for Banking: Loan Approval example

    • Click Results to go to the visualization for the scan. At the top right of the page, you can toggle between the Model and Evaluation views. View by Model is the default. At the top of the page from left to right you will find:

      • A link list with navigation options
      • Use case-scan information that applies to all evaluation types
      • The report type toggle that defaults to Model, but can be switched to Evaluation view.

      Scan Results (Performance) for Banking: Loan Approval example

  1. From the Scan Detail page top left navigation list, you can click:

    • The Model Use Cases link to return to the Use Case list page (see image in step 1)
    • The Use Case Name link (Banking: Loan Approval in this example) to view the Use Case Details page. (see image in step 2)
    • The Scan List link to return to the list of scans that have been run for the use case. (see image in step 2)
    • The Results link to view the visualizations for the scan. (see image in step 4)
  2. The Results link's landing page is an Evaluation Scan report (see the different Evaluations below). From this report you can navigate to:

    • Other pages in the Console (top left link list)
      • The Model Use Cases link returns you to the Use Case list page (see image in step 2)
      • The Use Case Name link (Banking: Loan Approval in this example) takes you to view the Model Scores Diagram, Use Case details, Scan information, and Model Scores table. (see inage in step 5)
      • The Scan List link returns you to the list of scans that have been run for the use case. (see image in step 2)
      • The Scan ID link returns you to the Scan Details page. (see image in step 4)
    • The Model view of the Evaluation (Evaluation/Model toggle at the top right) (see image in step 7)
    • The Evaluation visualization for the scan. Click on the graph of the evaluation type to display the details for that evaluation type for all models included in the scan. (see "Evaluation reports" below)
  3. On the Model toggle landing page a graph is displayed for each model included in the scan.

    Click on a model graph to view evaluation type details for the selected model.

    Scan Detail-Model Banking: Loan Approval example

Evaluation reports

There are 5 possible evaluation types and corresponding reports that can be configured for scans. Four of these types provides a different kind of trust scores for the models. The fifth score provided in the visualizations, ATX, is a composite trust index score calculated based on the other evaluation type scores. The 5th evaluation type provides detailed explanations for individual model predictions, and does not provide a trust score.

Performance

Scan Results (Performance) for Banking: Loan Approval example

Fairness

Scan Results (Fairness) for Banking: Loan Approval example

Explainability

Scan Results (Explainability) for Banking: Loan Approval example

The explanations feature for Multiclass Classification task type provides a toggle for viewing more or less favorable outcomes than the original. The toggle is only used for ordered multiclass classification use cases.

Scan Results (Explanations for Multiclass task type) for Heart Disease example

The explanations feature also offers an alternative display for SHAP results. Users can opt for SHAP explanations, counterfactual explanations, or both.

Use the SHAP notebook available in the Cortex-Certifai-Examples repository to run a scan the generates SHAP results.

Scan Results (Explanations for SHAP example)

Robustness

Scan Results (Robustness) for Banking: Loan Approval example

ATX

Scan Results (ATX) for Banking: Loan Approval example

Download counterfactuals

  1. Enable the saving of counterfactuals for evaluations.

    To configure saving counterfactuals, set the save_counterfactuals value to true in the evaluation section of the scan-definition.yaml file.

  2. Run your scan and open the Console.

  3. In Console find the use case and select scan list from the vertical ellipsis menu.

  4. Find the scan and select results from the menu at the end of the row.

  5. View by model is displayed by default. Click a model chart in the row of charts beneath the summary.

  6. If counterfactuals were configured to be saved, the Download button is displayed at the top right. Click the button.

  7. Choose the report type you want the counterfactuals file for from the options displayed:

  • Fairness
  • Robustness
  • Explainability (counterfactuals)
  • Explainability (SHAP)
  • Explanations (Counterfactuals)
  • Explanations (SHAP)
  1. A .csv file is downloaded to your local drive.

Links

For more information about how to configure the scan definition to display the visualizations above, head here.