Created
July 14, 2022 05:00
-
-
Save mwitiderrick/4b844b38aa41ea12cbca100e53466850 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
predictions = jnp.array([0.50,0.60,0.70,0.30,0.25]) | |
targets = jnp.array([0.20,0.30,0.10,0.20,0.2]) | |
optax.l2_loss(predictions,targets) | |
# DeviceArray([0.045 , 0.045 , 0.17999998, 0.005 , 0.00125 ], dtype=float32) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment