MicrosoftDocs / ml-basics

Exercise notebooks for Machine Learning modules on Microsoft Learn

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Small bug in Notebook

jp-varela opened this issue · comments

Found a small bug in '05a - Deep Neural Networks (TensorFlow)'.
First notebook cell:

# The dataset is too small to be useful for deep learning
# So we'll oversample it to triple its size
for i in range(1,3):
    penguins = penguins.append(penguins)

This is not correct, as this will not triple its size.

Possible Fix:

# The dataset is too small to be useful for deep learning
# So we'll oversample it to triple its size
penguins_3x = pd.DataFrame()
for i in range(3):
    penguins_3x = penguins_3x.append(penguins)
penguins = penguins_3x

Thanks - fixed!