Chapter 14 code, extra information, and errata


Sample code for chapter 14

Page 337

Updated:

      
        self.weights = 0.01 * np.random.randn(inputs, neurons)
        self.biases = np.zeros((1, neurons))

With:

        self.weights = 0.01 * np.random.randn(n_inputs, n_neurons)
        self.biases = np.zeros((1, n_neurons))

Missing n_ in variable names which we have added everywhere else

page 344:

Updated:

 # Create Dense layer with 2 input features and 3 output values

With:

 # Create Dense layer with 2 input features and 64 output values
Comment says 3` outputs which confused readers