Errata

Software Engineering for Data Scientists

Errata for Software Engineering for Data Scientists

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.

Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted by Date submitted
PDF Page 41
Arrays in Machine Learning 2nd code block

In the first code block of the section, we define the numpy array as follows:
Create a NumPy array as before:
np_tensor = np.random.rand(4,4)

However, the next code block says this:
Then convert it to TensorFlow tensor format, like so:
import tensorflow as tf
tf_tensor = tf.convert_to_tensor(tensor_numpy)

I assume that tensor_numpy is supposed to be np_tensor as the third code block that uses pytorch uses np_tensor.

Anonymous  May 27, 2024 
PDF Page 52
First and second code block

The first code block says that calling the multiply_text method on repeat_twice with "hello" produces 'hello hello'.

However, based on the method definition body: print((some_text) + " ")* self.n_repeats), the result should actually be 'hello hello ' with a trailing space.

Anonymous  May 28, 2024