From ee00e79f2cefd7de427702cc7360d2aee61442ed Mon Sep 17 00:00:00 2001 From: Jen Looper Date: Mon, 8 Mar 2021 12:54:28 -0500 Subject: [PATCH] assignment --- 2-Regression/1-Tools/README.md | 5 +++-- 2-Regression/1-Tools/assignment.md | 8 ++++++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/2-Regression/1-Tools/README.md b/2-Regression/1-Tools/README.md index 21e81581..10e2b79c 100644 --- a/2-Regression/1-Tools/README.md +++ b/2-Regression/1-Tools/README.md @@ -145,10 +145,11 @@ plt.scatter(X_test, y_test, color='black') plt.plot(X_test, y_pred, color='blue', linewidth=3) plt.show() ``` -Congratulations, you just built your first Linear Regression model, created a prediction with it, and displayed it in a plot! +✅ Think a bit about what's going on here. A straight line is running through many small dots of data, but what is it doing exactly? Can you see how you should be able to use this line to predict where a new, unseen data point should fit in relationship to the plot's y axis? Try to put into words the practical use of this model. -🚀 Challenge: Try to plot a different variable from this dataset. Hint: edit this line: `X = X[:, np.newaxis, 2]`. Given this dataset's target, what are you able to discover about the progression of diabetes as a disease? +Congratulations, you just built your first Linear Regression model, created a prediction with it, and displayed it in a plot! +🚀 Challenge: Plot a different variable from this dataset. Hint: edit this line: `X = X[:, np.newaxis, 2]`. Given this dataset's target, what are you able to discover about the progression of diabetes as a disease? ## [Post-lecture quiz](https://jolly-sea-0a877260f.azurestaticapps.net/quiz/6/) ## Review & Self Study diff --git a/2-Regression/1-Tools/assignment.md b/2-Regression/1-Tools/assignment.md index d4badb79..4861450f 100644 --- a/2-Regression/1-Tools/assignment.md +++ b/2-Regression/1-Tools/assignment.md @@ -1,9 +1,13 @@ -# [Assignment Name] +# Regression with Scikit-Learn ## Instructions +Take a look at the [Linnerud dataset](https://scikit-learn.org/stable/modules/generated/sklearn.datasets.load_linnerud.html#sklearn.datasets.load_linnerud) in Scikit-Learn. This dataset has multiple [targets](https://scikit-learn.org/stable/datasets/toy_dataset.html#linnerrud-dataset): 'It consists of three excercise (data) and three physiological (target) variables collected from twenty middle-aged men in a fitness club'. + +In your own words, describe how to create a Regression model that would plot the relationship between the waistline and how many situps are accomplished. Do the same for the other datapoints in this dataset. + ## Rubric | Criteria | Exemplary | Adequate | Needs Improvement | | -------- | --------- | -------- | ----------------- | -| | | | | +| Submit a descriptive paragraph | Well-written paragraph is submitted | A few sentences are submitted | No description is supplied |