功能工程:喂食360°导向变量到神经网络

发布于 2025-02-06 04:25:15 字数 203 浏览 2 评论 0原文

预测变量(x)变量可能是360°等级的方向变量。

显然,这是一个连续体,值360非常接近1。将连续变量从1到360输入到神经网络中会引入偏差。

处理此问题的最佳方法是什么?

  • 一种方法可能是将值(1至360)分为类别:北 - 东北 - 东南 - 西南 - 西南 - 西部 - 韦斯特诺斯。

还有其他建议或评论吗?

A predictor (X) variable could be an orientation variable on a 360° scale.

Obviously, it is a continuum, the value 360 being very close to 1. Inputing a continuous variable from 1 to 360 into the neural network would thus introduce bias.

What would be the best way to handle this ?

  • One way could be to categorizing the values (1 to 360) into categories: North - NorthEast - East - EastSouth - South - SouthWest - West - WestNorth.

Any other suggestions or comments?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

錯遇了你 2025-02-13 04:25:15

通过将您的功能表示为2维,而不是一个维度,您可以轻松地避免此问题 - 只需将其推向余弦和正弦,这样就可以将角度更改为单位圆上的点。

f(a) := [cos(a), sin(a)]

请注意,我们现在有f(0)= f(2 * pi)= f(4 * pi)等等。请注意,这是在弧度中,如果您使用的学位要做

g(d) := f(d/180 * pi)

By expressing your feature as 2 dimensions, instead of one you can easily avoid this problem - simply push it through cosine and sine, this way you change your angle into a point on a unit circle.

f(a) := [cos(a), sin(a)]

Note that we now have f(0) = f(2*pi) = f(4 * pi) and so on. Note that this is in radians, if you are using degrees you want to do instead

g(d) := f(d/180 * pi)
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文