Hi,
Just to have some more info, did you follow a tutorial? can you share the link?
where did you get the [-1, 1] range?
are you running this on JS?
the colab link needs permission, maybe if you put on a public repository it would be easier to share on this forum.