The error in MLP code for XOR
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi everybody! I wrote MLP for XOR, but I got unexpected result! :( I got this: 0.54993...0; 0.45023...0; 0.54962...1; 0.54962...1; Unfortunately I can't find the error in code by myself. The source code in attach. Can anybody help me to clarify where is the error? Thanx!!!
댓글 수: 0
답변 (1개)
Jan
2014년 9월 21일
Your code does not have a valid Matlab syntax. There are no comments. The reader has to guess what "MLP" and "XOR" means in this case. It is not clear why you claim that the results are wrong, because you do not mention the values you expect. So perhaps simply your expectations are wrong.
Based on the source code only, it is impossible to guess if it contains bugs. Considering that the initial data are random (|randn()| !), the final values are most likely influenced randomly also.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!