会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
springside例子
博客园
首页
新随笔
联系
订阅
管理
使用newrbe 神经网络模拟sin逼近II
之前 写了一个 NN的测试代码,后来想想发现好象 逼近得不相似,改了一下测试数据! 就像你人一样! 因为过去有经历,所以会在经历中找寻类似的, 但是 如果你过去没经历,那就没办法预测
close all;clear;clc; x = -10:0.03:9.99; y = -9.99 : 0.03 : 10; sinx = sin(x); siny = sin(y); for i=2:5 %x input %sinx target kjnet=newrbe(x,sinx,i); %使用 newrbe算法进行 NN训练,i可选择(径向基函数扩展速度),具体可以查看API中的example end %figure(1); %plotperf(tr); NNReslut=sim(kjnet,y); %使用我们训练出来的神经网络 %figure(2); %plot([p o1],'r'); figure(3); plot(NNReslut,'b'); hold on; plot(siny,'r'); title('red line =t,blue line=t+a');
posted on
2008-07-13 19:26
springside例子
阅读(
252
) 评论(
0
)
收藏
举报
刷新页面
返回顶部