Open
Description
In "### Defining a network Layer ###" while defining OurDenseLayer class, even in solution
AssertionError Traceback (most recent call last)
[<ipython-input-3-19850ceade07>](https://z1pxgxqagka-496ff2e9c6d22116-0-colab.googleusercontent.com/outputframe.html?vrz=colab-20230223-060147-RC00_511737765#) in <module>
36 # test the output!
37 print(y.numpy())
---> 38 mdl.lab1.test_custom_dense_layer_output(y)
3 frames
[/usr/local/lib/python3.8/dist-packages/numpy/testing/_private/utils.py](https://z1pxgxqagka-496ff2e9c6d22116-0-colab.googleusercontent.com/outputframe.html?vrz=colab-20230223-060147-RC00_511737765#) in assert_array_compare(comparison, x, y, err_msg, verbose, header, precision, equal_nan, equal_inf)
842 verbose=verbose, header=header,
843 names=('x', 'y'), precision=precision)
--> 844 raise AssertionError(msg)
845 except ValueError:
846 import traceback
AssertionError:
Arrays are not almost equal to 7 decimals
[FAIL] output is of incorrect value. expected [[0.31251222 0.12787536 0.9313476 ]] but got [[0.2697859 0.45750418 0.66536945]]
Mismatched elements: 3 / 3 (100%)
Max absolute difference: 0.32962883
Max relative difference: 0.72049356
x: array([[0.3125122, 0.1278754, 0.9313476]], dtype=float32)
y: array([[0.2697859, 0.4575042, 0.6653695]], dtype=float32)```
Metadata
Metadata
Assignees
Labels
No labels