Fibonacci with Neural Network
조회 수: 1 (최근 30일)
이전 댓글 표시
Hello Im new in this and I want to implement a neural network that given a number returns the fibbonaci number in that position. for example:
given 3 returns 2
or
given 6 returns 8
I tried to trained it giving an input = [1 2 3 4 5 6 ...] and a target = [1 1 2 3 5 8 ....] but there's a problem.
I hope you can help me :)
댓글 수: 0
채택된 답변
Greg Heath
2012년 12월 9일
A neural net is unnecessary::
F(n) = ( ( 1 + sqrt(5 ))/2 )^n - (( 1 - sqrt(5))/2 )^n ) / sqrt(5)
Thank you for formally accepting my answer.
Greg
댓글 수: 0
추가 답변 (3개)
Pritesh Shah
2012년 12월 7일
Hi, I think you have to use different NN Network.
Please understand that for the different op we have different Input.
That is reason for failing in ur case.
U can use Adaptive NN
댓글 수: 0
Greg Heath
2012년 12월 7일
help narnet
doc narnet
Hope this helps.
Thank you for formally accepting my answer.
Greg
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Data Workflows에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!