gpt4 book ai didi

normalization - 如何将数据归一化为 1,以便每个值都获得与其自身值成比例的权重

转载 作者:行者123 更新时间:2023-12-05 06:45:38 25 4
gpt4 key购买 nike

我有一些总和不为 1 的数据,我希望总和为 1。

  • 0.0232
  • 0.05454
  • 0.2154
  • 0.5
  • 0.005426
  • 0.024354
  • 0.00000456
  • 总和:0.82292456

    我可以将每个值乘以 1.0/0.82292456,然后将总和设为 1.00,但随后所有值都会接受相同比例的因子调整(即 0.17707544)。

    我想根据值本身的大小增加每个值。换句话说,0.5 将获得比 00000456 更大的比例调整。

    我不确定如何确定这些可能是加法、乘法或两者的调整。

    任何提示或建议都会有所帮助!

    谢谢!

    最佳答案

    I could just multiply each value by 1.0/0.82292456 and then have the sum be 1.00, but then all values would receive a factor adjustment of the same proportion (i.e 0.17707544).

    好的,这就是我要做的。为什么“同比例因子调整”是个问题?

    I'd like to increase each value based on the size of the value itself.

    在这种情况下,您应该将每个值乘以 1.0/0.82292456,因为乘法就是这样做的。

    关于normalization - 如何将数据归一化为 1,以便每个值都获得与其自身值成比例的权重,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22819502/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com