Python貝葉斯算法簡單實現

train=[[0,1,0,0,1,0,0,1,0],[1,0,0,1,0,0,1,0,0],[0,0,1,0,0,1,0,0,1],[1,1,0,1,1,0,1,1,0],[1,1,1,1,0,1,1,1,1],[0,1,1,0,1,1,0,1,1]] label=[1,1,1,0,0,0] test=[0,1,1,0,1,1,0,1,0] def p_label(la): s=0 for
相關文章
相關標籤/搜索