ageron / ageron/handson-ml2

Chapter 12, exercise 12 - mistake in the denominator

Abierto
#173 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Jupyter Notebook
Estrellas
30k
Forks
13.1k
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

Hi.
Thank you very much for writing an excellent book, and maintaining the notebooks.
In exercise 12 of chapter 12, in the call method, I believe the return statement should state

`return self.alpha * (X - mean) / (tf.sqrt(variance) + self.eps) + self.beta`

in order to match alpha.*(X-mu)/(sigma + eps) + beta.
The current implementation is:

```
def call(self, X):
mean, variance = tf.nn.moments(X, axes=-1, keepdims=True)
return self.alpha * (X - mean) / (tf.sqrt(variance + self.eps)) + self.beta
```

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.