Skip to content

Commit

Permalink
Update 3-model-eval-and-fairness.md
Browse files Browse the repository at this point in the history
add call to .head() for previewing data. also show type of object so folks know what they're working with
  • Loading branch information
qualiaMachine authored Sep 25, 2024
1 parent 4fe2cdf commit 38fd553
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion episodes/3-model-eval-and-fairness.md
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,17 @@ privileged_groups = [{sens_attr: v} for v in
dataset_orig_panel19_train.privileged_protected_attributes[sens_ind]]

```

Check object type.
```python
type(dataset_orig_panel19_train)
```

Preview data.
```python
dataset_orig_panel19_train.convert_to_dataframe()[0].head()
```

Show details about the data.
```python
def describe(train=None, val=None, test=None):
Expand Down Expand Up @@ -632,4 +643,4 @@ And for White individuals:
- Representational harms and stereotypes can be perpetuated by generative AI.
- The fairness of a model can be improved by using techniques like data reweighting and model postprocessing.

::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::

0 comments on commit 38fd553

Please sign in to comment.