2011-03-21 2 views
0

I'am이 예제를 읽고,하지만 당신은 좀 더 설명해 주시겠습니까 그들은 얻을Desicion 네트워크는 예

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

from

enter image description here enter image description here,536,913,632 10 enter image description here

답변

1

숫자 목록을 정규화하려면 각 숫자를 목록의 합계로 나눕니다.

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

그는 왜 그렇게합니까? – cMinor