-
Notifications
You must be signed in to change notification settings - Fork 6
module 5 #49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
module 5 #49
Changes from 4 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
format: | ||
html: | ||
page-layout: full | ||
--- | ||
|
||
# 0. Module Learning Outcomes | ||
|
||
::: {.panel-tabset .nav-pills} | ||
|
||
## Video | ||
|
||
<iframe | ||
class="video" | ||
src="https://www.youtube.com/embed/9zkvbdTvS6w" | ||
title="Module 5 Video - Module Learning Outcomes" | ||
frameborder="0" | ||
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" | ||
allowfullscreen | ||
></iframe> | ||
|
||
## Slides | ||
|
||
<iframe | ||
class="slide-deck" | ||
src="slides/module5_00.html" | ||
></iframe> | ||
|
||
::: |
29 changes: 29 additions & 0 deletions
29
modules/module5/module5-01-the_importance_of_preprocessing.qmd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
format: | ||
html: | ||
page-layout: full | ||
--- | ||
|
||
# 1. The Importance of Preprocessing | ||
|
||
::: {.panel-tabset .nav-pills} | ||
|
||
## Video | ||
|
||
<iframe | ||
class="video" | ||
src="https://www.youtube.com/embed/aBpgJh0ikoA?start=2473&end=3131&rel=0" | ||
title="Module 5 Video - The Importance of Preprocessing" | ||
frameborder="0" | ||
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" | ||
allowfullscreen | ||
></iframe> | ||
|
||
## Slides | ||
|
||
<iframe | ||
class="slide-deck" | ||
src="slides/module5_01.html" | ||
></iframe> | ||
|
||
::: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
--- | ||
format: html | ||
--- | ||
|
||
<script src='../../src/quiz.js'></script> | ||
|
||
# 1.1. Exercises | ||
|
||
## Questions on Why | ||
|
||
<div id='mcq1'></div> | ||
<script> | ||
generateQuiz( | ||
'mcq1', | ||
'Question 1', | ||
'Which model will still produce meaningful predictions with different scaled column values?', | ||
{ | ||
'Decision Trees': 'You are right! Decision Trees visit a single feature at a time, unlike 𝑘-NN models, which calculate distances using the features all together.', | ||
'𝑘-NN': 'This works in a similar way to SVM, where distance is calculated and features are observed together and not independently of each other.', | ||
'SVM': 'This works in a similar way to 𝑘-NN, where distance is calculated and features are observed together and not independently of each other.', | ||
}, | ||
'Decision Trees', | ||
); | ||
</script> | ||
|
||
<div id='mcq2'></div> | ||
<script> | ||
generateQuiz( | ||
'mcq2', | ||
'Complete the following statement', | ||
'Preprocessing is done ____.', | ||
{ | ||
'To the model before training': 'It is done before training but not to the model.', | ||
'To the data before training the model': '', | ||
'To the model after training': 'It’s not done to the model or after training.', | ||
'To the data after training the model': 'You are half right, but it’s not done after training the model.', | ||
}, | ||
'To the data before training the model', | ||
); | ||
</script> | ||
|
||
## Motivation True and False | ||
|
||
<div id='mcq3'></div> | ||
<script> | ||
generateQuiz( | ||
'mcq3', | ||
'Question 1', | ||
'Columns with lower magnitudes compared to columns with higher magnitudes are less important when making predictions.', | ||
{ | ||
'True': 'These types of models find examples that are most similar to the text example in the <i>training</i> set.', | ||
'False': 'Great! Just because a feature has smaller values does not mean it’s less informative.', | ||
}, | ||
'False', | ||
); | ||
</script> | ||
|
||
<div id='mcq4'></div> | ||
<script> | ||
generateQuiz( | ||
'mcq4', | ||
'Question 2', | ||
'A model less sensitive to the scale of the data makes it more robust.', | ||
{ | ||
'True': 'Nailed it!', | ||
'False': 'Models that are more sensitive to scale can be problematic.', | ||
}, | ||
'True', | ||
); | ||
</script> | ||
|
||
## Preprocessing Questions | ||
|
||
<div id='mcq5'></div> | ||
<script> | ||
generateQuiz( | ||
'mcq5', | ||
'Question 1', | ||
'<code>StandardScaler</code> is a type of what?', | ||
{ | ||
'Converter': 'You are close but the terminology is not correct.', | ||
'Categorizer': 'Not quite.', | ||
'Model': 'We are not modeling with <code>StandardScaler</code> since it is <i>transforming</i> the data and not predicting on it.', | ||
'Transformer': '', | ||
}, | ||
'Transformer', | ||
); | ||
</script> | ||
|
||
<div id='mcq6'></div> | ||
<script> | ||
generateQuiz( | ||
'mcq6', | ||
'Question 2', | ||
'What data does <code>StandardScaler</code> alter?', | ||
{ | ||
'Training only': 'It definitely alters the training set but that’s not all.', | ||
'Testing only': 'It does alter the test data but it doesn’t stop there.', | ||
'Both training and testing': '', | ||
'Nether training or testing': 'We need to scale our data though!', | ||
}, | ||
'Both training and testing', | ||
); | ||
</script> |
29 changes: 29 additions & 0 deletions
29
modules/module5/module5-05-case_study:_preprocessing_with_imputation.qmd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
format: | ||
html: | ||
page-layout: full | ||
--- | ||
|
||
# 2. Case Study: Preprocessing with Imputation | ||
|
||
::: {.panel-tabset .nav-pills} | ||
|
||
## Video | ||
|
||
<iframe | ||
class="video" | ||
src="https://www.youtube.com/embed/aBpgJh0ikoA?start=3137&end=3722&rel=0" | ||
title="Module 5 Video - Case Study: Preprocessing with Imputation" | ||
frameborder="0" | ||
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" | ||
allowfullscreen | ||
></iframe> | ||
|
||
## Slides | ||
|
||
<iframe | ||
class="slide-deck" | ||
src="slides/module5_05.html" | ||
></iframe> | ||
|
||
::: |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.