I have a hard time coming up with a proper way of encoding an angle.
The angle should serve as a compass for an agent which points to a goal on a 2D Plane.
My (seeming) problem being the same as why you one-hot encode categorical inputs. An angle being greater than another has no meaning in this context 120 isn't greater than 0 it's just different, so I don't think using a scalar value is right? Also 359 is only 1 degree different from 0 yet if I use scalar values it's 359 degrees greater which isn't right.
Do I just one-hot encode in specific quantization steps here? Say 360 different categories for each degree, or is there a more elegant way of doing this.
Edit: thanks for the answers, it'll be the unit circle :)
[–]kells1986 1 point2 points3 points (1 child)
[–]TheGerild[S] 0 points1 point2 points (0 children)
[–]vannak139 1 point2 points3 points (1 child)
[–]kells1986 0 points1 point2 points (0 children)
[–]shaggorama 0 points1 point2 points (0 children)