handson-ml3
handson-ml3 copied to clipboard
A series of Jupyter notebooks that walk you through the fundamentals of Machine Learning and Deep Learning in Python using Scikit-Learn, Keras and TensorFlow 2.
**To Reproduce run following** ``` class MyMomentumOptimizer(tf.keras.optimizers.Optimizer): def __init__(self, learning_rate=0.001, momentum=0.9, name="MyMomentumOptimizer", **kwargs): """Call super().__init__() and use _set_hyper() to store hyperparameters""" super().__init__('MyMomentumOptimizer', **kwargs) self._set_hyper("learning_rate", kwargs.get("lr", learning_rate)) # handle lr=learning_rate self._set_hyper("decay",...
In chapter 14, the following class is introduced: ```python class DepthPool(tf.keras.layers.Layer): def __init__(self, pool_size=2, **kwargs): super().__init__(**kwargs) self.pool_size = pool_size def call(self, inputs): shape = tf.shape(inputs) # shape[-1] is the number...
I am completely new to the material, so could be wrong, but I think the solution of exercise 10 has an issue. The solution presents the following function: ```python def...
The code for `to_seq2seq_dataset` is this ```python def to_seq2seq_dataset(series, seq_length=56, ahead=14, target_col=1, batch_size=32, shuffle=False, seed=None): ds = to_windows(tf.data.Dataset.from_tensor_slices(series), ahead + 1) ds = to_windows(ds, seq_length).map(lambda S: (S[:, 0], S[:, 1:,...
Thanks for helping us improve this project! **Before you create this issue** Please make sure you are using the latest updated code and libraries: see https://github.com/ageron/handson-ml3/blob/main/INSTALL.md#update-this-project-and-its-libraries Also please make sure...
This isn't a bug, but rather a possible suggested improvement. In figure 2-13 the option sharex=False is used to handle a bug that used to occur in matplotlib. *The argument...
**Describe the bug** In the third edition of the book, in Chapter 11 of the Max Norm Regulation, in the last paragraph, you write, 'The max_norm() function has an axis...
In the centre box showing the text windows with purple markers, Window 2 starts on the letter 'i', but I would have expected it to start on 'z', as the...
Thanks for helping us improve this project! **Before you create this issue** Please make sure you are using the latest updated code and libraries: see https://github.com/ageron/handson-ml3/blob/main/INSTALL.md#update-this-project-and-its-libraries Also please make sure...
Thanks for helping us improve this project! **Before you create this issue** Please make sure you are using the latest updated code and libraries: see https://github.com/ageron/handson-ml3/blob/main/INSTALL.md#update-this-project-and-its-libraries Also please make sure...