Fibonacci with Neural Network
3 ビュー (過去 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!