Skip to content

Commit 9dca07d

Browse files
Update A1_Intro_to_DataScience_and_ML.md
1 parent a17285e commit 9dca07d

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

docs/mlpaths/A1_Intro_to_DataScience_and_ML.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ This quiz helps you self-assess your understanding. Answers can be verified by r
182182
d) The development of software that can reason and solve complex problems like humans.<br>
183183
*(Answer: (1) :eyes:)*
184184
{ .annotate }
185+
<span class="annotate">(1)</span><ol><li>when possible</li></ol>
185186

186187
2. Consider the following Python code using Pandas:
187188
```python
@@ -198,39 +199,44 @@ This quiz helps you self-assess your understanding. Answers can be verified by r
198199
d) 6<br>
199200
*(Answer: (2) :eyes:)*
200201
{ .annotate }
201-
202+
<span class="annotate">(2)</span><ol><li>when not possible</li></ol>
203+
202204
3. Which Python library is primarily used for creating statistical visualizations like heatmaps and pair plots with concise syntax?<br>
203205
a) NumPy<br>
204206
b) Seaborn<br>
205207
c) Pandas<br>
206208
d) Scikit-learn<br>
207209
*(Answer: (1) :eyes:)*
208210
{ .annotate }
209-
211+
<span class="annotate">(1)</span><ol><li>when possible</li></ol>
212+
210213
4. In a typical classification problem, what is the role of the 'target variable'?<br>
211214
a) It's an input feature used by the model to learn.<br>
212215
b) It's the categorical label or class that the model aims to predict.<br>
213216
c) It's a numerical value the model tries to estimate.<br>
214217
d) It's a technique for reducing the number of features.<br>
215218
*(Answer: (1) :eyes:)*
216219
{ .annotate }
217-
220+
<span class="annotate">(1)</span><ol><li>when possible</li></ol>
221+
218222
5. What is the primary purpose of `train_test_split` in Scikit-learn?<br>
219223
a) To combine two different datasets into one.<br>
220224
b) To separate features from the target variable within a single dataset.<br>
221225
c) To divide a dataset into one part for training the model and another, unseen part for evaluating its performance.<br>
222226
d) To visualize the distribution of data.<br>
223227
*(Answer: (2) :eyes:)*
224228
{ .annotate }
225-
229+
<span class="annotate">(2)</span><ol><li>when not possible</li></ol>
230+
226231
6. If you want to create a scatter plot in Python to visualize the relationship between 'Height' and 'Weight' columns in a Pandas DataFrame `df`, which line of code is most appropriate using Seaborn?<br>
227232
a) `sns.histplot(data=df, x='Height', y='Weight')`<br>
228233
b) `sns.boxplot(data=df, x='Height', y='Weight')`<br>
229234
c) `sns.scatterplot(data=df, x='Height', y='Weight')`<br>
230235
d) `df.plot(kind='scatter', x='Height', y='Weight')` (This is Pandas plotting, not Seaborn directly)<br>
231236
*(Answer: (2) :eyes:)*
232237
{ .annotate }
233-
238+
<span class="annotate">(2)</span><ol><li>when not possible</li></ol>
239+
234240
7. You have loaded a dataset into a Pandas DataFrame called `sales_df`. How would you display the first 10 rows of this DataFrame?<br>
235241
a) `sales_df.show(10)`<br>
236242
b) `sales_df.display_head(10)`<br>
@@ -264,7 +270,6 @@ This quiz helps you self-assess your understanding. Answers can be verified by r
264270
{ .annotate }
265271

266272
</div>
267-
268273
1. Answer is: <b>b</b>
269274
2. Answer is: <b>c</b>
270275

0 commit comments

Comments
 (0)