Skip to content

Commit

Permalink
Merge pull request #9 from qingfengtommy/patch-1
Browse files Browse the repository at this point in the history
Update 7a-OOD-detection-output-based.md
  • Loading branch information
qualiaMachine authored Oct 16, 2024
2 parents 75a4082 + 7be70de commit 7a94bcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions episodes/7a-OOD-detection-output-based.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def prep_ID_OOD_datasests(ID_class_labels, OOD_class_labels):
test_labels = test_labels[test_filter]
print(f'test_data.shape={test_data.shape}')

return ood_data, train_data, test_data
return ood_data, train_data, test_data, train_labels, test_labels


def plot_data_sample(train_data, ood_data):
Expand Down Expand Up @@ -151,7 +151,7 @@ def plot_data_sample(train_data, ood_data):

```
```python
ood_data, train_data, test_data = prep_ID_OOD_datasests([0,1], [5])
ood_data, train_data, test_data, train_labels, test_labels = prep_ID_OOD_datasests([0,1], [5])
fig = plot_data_sample(train_data, ood_data)
fig.savefig('../images/OOD-detection_image-data-preview.png', dpi=300, bbox_inches='tight')
plt.show()
Expand Down

0 comments on commit 7a94bcf

Please sign in to comment.