deep learning XOR(exclusive OR)

線性分類不能解決異或問題

array \ \ \ x=$$ \left[ \begin{matrix} 0 & 0 \\ 0& 1 \\ 1 & 0\\1&1 \end{matrix} \right] \tag{3} $$,        weight1\ \ \ W=$$ \left[ \begin{matrix}1 & 1\\1&1 \end{matrix} \right] \tag{3} $$,   bias \ \ \ b=$$ \left[ \begin{matrix}0\\-1 \end{matrix} \right] \tag{3} $$,  weight2 \ \ \ w=$$ \left[ \begin{matrix}1\\-2\end{matrix} \right] \tag{3} $$

 

y=xW+b=$$ \left[ \begin{matrix} 0 & -1 \\ 1& 0 \\ 1 & 0\\2&1 \end{matrix} \right] \tag{3} $$,    relu(y)=$$ \left[ \begin{matrix} 0 & 0 \\ 1& 0 \\ 1 & 0\\2&1 \end{matrix} \right] \tag{3} $$,    relu(y)w=$$ \left[ \begin{matrix} 0 \\ 1 \\ 1\\0 \end{matrix} \right] \tag{3} $$

 

x=$$ \left[ \begin{matrix} 0 & 0 \\ 0& 1 \\ 1 & 0\\1&1 \end{matrix} \right] \tag{3} $$ --->$$ \left[ \begin{matrix} 0 \\ 1 \\ 1\\0 \end{matrix} \right] \tag{3} $$   ,經過變換,解決異或問題

 

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章