1 Star 1 Fork 0

小黑/BP

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
testBp.m 332 Bytes
一键复制 编辑 原始数据 按行查看 历史
小黑 提交于 2023-04-13 22:38 . init
test_sum = 10000;
count = 0;
for i = 1:test_sum
temp1 = test_ima(:,i)'*w1 + bias1';
net = sigmoid(temp1);
%˴ѡhid*1ز
temp2 = net*w2 + bias2';
z = sigmoid(temp2);
[maxn,inx] = max(z);
inx = inx -1;
if inx == test_lab(i)
count = count+1;
end
end
correctRate = count/test_sum
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Matlab
1
https://gitee.com/testforfun/bp.git
git@gitee.com:testforfun/bp.git
testforfun
bp
BP
master

搜索帮助