Skip to content

Commit

Permalink
add starters for OOD-distance and OOD-algo
Browse files Browse the repository at this point in the history
  • Loading branch information
qualiaMachine committed Jul 31, 2024
1 parent 845639f commit 3cdad32
Show file tree
Hide file tree
Showing 6 changed files with 1,647 additions and 6 deletions.
955 changes: 955 additions & 0 deletions code/7b-OOD-detection-distance-based.ipynb

Large diffs are not rendered by default.

66 changes: 66 additions & 0 deletions code/7c-OOD-detection-algo-design.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"nbformat": 4,
"nbformat_minor": 0,
"metadata": {
"colab": {
"provenance": [],
"gpuType": "T4"
},
"kernelspec": {
"name": "python3",
"display_name": "Python 3"
},
"language_info": {
"name": "python"
},
"accelerator": "GPU"
},
"cells": [
{
"cell_type": "markdown",
"source": [
"---\n",
"title: \"OOD Detection: Training-Time Regularization\"\n",
"teaching: 0\n",
"exercises: 0\n",
"---"
],
"metadata": {
"id": "JVTw2HExPXHz"
}
},
{
"cell_type": "markdown",
"source": [
"### Questions\n",
"- What are the key considerations when designing algorithms for OOD detection?\n",
"- How can OOD detection be incorporated into the loss functions of models?\n",
"- What are the challenges and best practices for training models with OOD detection capabilities?"
],
"metadata": {
"id": "4Kmnv3SfbJzY"
}
},
{
"cell_type": "markdown",
"source": [
"### Objectives\n",
"- Understand the critical design considerations for creating effective OOD detection algorithms.\n",
"- Learn how to integrate OOD detection into the loss functions of machine learning models.\n",
"- Identify the challenges in training models with OOD detection and explore best practices to overcome these challenges."
],
"metadata": {
"id": "3ci1vysfRdUo"
}
},
{
"cell_type": "markdown",
"source": [
"# Training-time regularization for OOD detection"
],
"metadata": {
"id": "uZn6oCV2aOx9"
}
}
]
}
12 changes: 6 additions & 6 deletions code/conversion-scripts/convert-ipynb-to-md.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,18 +44,18 @@ def process_markdown_cell(cell):
elif in_objectives:
if re.match(r'^#', line):
in_objectives = False
# markdown_lines.append("::::::::::::::::::::::::::::::::::::::: objectives")
# markdown_lines.extend(temp_objectives)
# markdown_lines.append("::::::::::::::::::::::::::::::::::::::::::::::::::")
markdown_lines.append("::::::::::::::::::::::::::::::::::::::: objectives")
markdown_lines.extend(temp_objectives)
markdown_lines.append("::::::::::::::::::::::::::::::::::::::::::::::::::")
# markdown_lines.append(line)
else:
temp_objectives.append(line)
elif in_questions:
if re.match(r'^#', line):
in_questions = False
# markdown_lines.append(":::::::::::::::::::::::::::::::::::::::: questions")
# markdown_lines.extend(temp_questions)
# markdown_lines.append("::::::::::::::::::::::::::::::::::::::::::::::::::")
markdown_lines.append(":::::::::::::::::::::::::::::::::::::::: questions")
markdown_lines.extend(temp_questions)
markdown_lines.append("::::::::::::::::::::::::::::::::::::::::::::::::::")
# markdown_lines.append(line)
else:
temp_questions.append(line)
Expand Down
2 changes: 2 additions & 0 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ episodes:
- 5d-gradcam.md
- 6-confidence-intervals.md
- 7a-OOD-detection-output-based.md
- 7b-OOD-detection-distance-based.md
- 7c-OOD-detection-algo-design.md
- 8-releasing-a-model.md

# Information for Learners
Expand Down
Loading

0 comments on commit 3cdad32

Please sign in to comment.