Skip to content

Commit

Permalink
🔨 Fix tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
tsterbak committed Aug 25, 2023
1 parent 3d27fd1 commit 0a82d40
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/sources/tutorials/tutorial-toxic-comments.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,14 @@ print(counterfactual_detection_results.concept_results[1].omitted_keywords)

## Lets look at some results in our Dashboard

To display the results as a dashboard with different plots just run the next cell.

```python
counterfactual_detection_results.dashboard(num_keywords=10)
```

See the gifs below for a short demo of the dashboard.

### Counterfactual Score
The first plot shows you the top $10$ keywords found within the concept "gender" and "religion" according to the difference resulting from the replacement of counterfactuals with that keyword.
The counterfactual score is defined as the difference between the predicted probability score for the counterfactual text and the predicted probability score for the original text.
Expand Down
8 changes: 8 additions & 0 deletions docs/templates/tutorials/tutorial-toxic-comments.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,14 @@ print(counterfactual_detection_results.concept_results[1].omitted_keywords)

## Lets look at some results in our Dashboard

To display the results as a dashboard with different plots just run the next cell.

```python
counterfactual_detection_results.dashboard(num_keywords=10)
```

See the gifs below for a short demo of the dashboard.

### Counterfactual Score
The first plot shows you the top $10$ keywords found within the concept "gender" and "religion" according to the difference resulting from the replacement of counterfactuals with that keyword.
The counterfactual score is defined as the difference between the predicted probability score for the counterfactual text and the predicted probability score for the original text.
Expand Down

0 comments on commit 0a82d40

Please sign in to comment.