开发者

Desicion Network Example

开发者 https://www.devze.com 2023-02-19 06:07 出处:网络
I\'am reading this example, but Could you explain a little more, I dont get the part when it says \"then we Normalize\"...

I'am reading this example, but Could you explain a little more, I dont get the part when it says "then we Normalize"... I know

P(sun) * P(F=bad|sun)  = 0.7*0.2 = 0.14
P(rain)* P(F=bad|rain) 开发者_C百科= 0.3*0.9 = 0.27

But where do they get

W    P(W | F=bad)
-----------------
sun     0.34
rain    0.66

Example from

Desicion Network Example

Desicion Network Example

Desicion Network Example


To normalize a list of numbers, you divide each by the sum of the list.

e.g. python

>>> v = [0.14, 0.27]
>>> s = sum(v)
>>> print s
0.41000000000000003
>>> vnorm = [n/s for n in v]
>>> print vnorm
[0.34146341463414637, 0.65853658536585369]
0

精彩评论

暂无评论...
验证码 换一张
取 消