xxxx18一60岁hd中国/日韩女同互慰一区二区/西西人体扒开双腿无遮挡/日韩欧美黄色一级片 - 色护士精品影院www

  • 大小: 881KB
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2021-05-24
  • 語言: C#
  • 標(biāo)簽: c#??

資源簡介

C#開發(fā)的BP神經(jīng)網(wǎng)絡(luò)代碼,有多種傳遞函數(shù)和訓(xùn)練方式

資源截圖

代碼片段和文件信息

using?System;
using?System.Collections.Generic;
using?System.Linq;
using?System.Text;
using?System.Collections;
using?System.IO;
namespace?BP
{
????class?BP_Algorithm
????{
????????struct?Node?{
????????????public?double?lr?mturn;?//學(xué)習(xí)速率,動量因子
????????????public?double?k?_k;?//閾值及閾值變化量
????????????public?double[]?w;
????????????public?double[]?_w;?//權(quán)值及權(quán)值變化量
????????????public?double?x?y;?//輸入與輸出
????????????public?double?err;//誤差信號δ
????????}
????????private?ArrayList?netWork?=?new?ArrayList();?//BP網(wǎng)絡(luò)
????????private?ArrayList?dataSet?=?new?ArrayList();?//數(shù)據(jù)集合
????????public?void?DataClear()?{?dataSet.Clear();?}
????????private?double?lRate?momentum;
????????private?double?xmin?xmax;
????????private?int?inSum?outSum?functionLex;
????????private?double[]?expectOut;//期望輸出
????????private?double?actualOutAvg?expectOutAvg?sqrtErr;?//實(shí)際輸出均值,期望輸出均值,總體均方誤差
????????public?double?ActualOutAvg?{
????????????get?{?return?_Normalizing(actualOutAvg);?}
????????}
????????public?double?ExpectOutAvg?{
????????????get?{?return?_Normalizing(expectOutAvg);?}
????????}
????????public?double?SqrtErr?{
????????????get?{?return?sqrtErr;?}
????????}
????????private?ArrayList?netError?=?new?ArrayList();
????????public?void?build(參數(shù)設(shè)置?stf)?{
????????????lRate?=?stf.LRate;?momentum?=?stf.Momentum;?
????????????inSum?=?stf.InSum;?outSum?=?stf.OutSum;
????????????functionLex?=?stf.FunchtionLex;?//傳遞函數(shù)類型
????????????netWork.Clear();?//銷毀原先網(wǎng)絡(luò),按照新的參數(shù)構(gòu)建網(wǎng)絡(luò)
????????????ArrayList?al?=?stf.Hlayers;
????????????al.Insert(0?stf.InSum);?//插入輸入層
????????????al.Add(stf.OutSum);?//添加輸出層
????????????Random?rd?=?new?Random(DateTime.Now.Millisecond);
????????????int?s?sn;
????????????for?(int?i?=?0;?i?????????????????s?=?(int)al[i];?//當(dāng)前層的結(jié)點(diǎn)數(shù)
????????????????if?(i?????????????????????sn?=?(int)al[i?+?1];?//下一層的結(jié)點(diǎn)數(shù)
????????????????else
????????????????????sn?=?0;?//輸出層,無下一層
????????????????ArrayList?newlayer?=?new?ArrayList();?//在網(wǎng)絡(luò)中創(chuàng)建一個(gè)新的層
????????????????for?(int?j?=?0;?j?????????????????????Node?newNode?=?new?Node();?//創(chuàng)建新的節(jié)點(diǎn)
????????????????????newNode._w?=?new?double[sn];
????????????????????newNode.w?=?new?double[sn];
????????????????????for?(int?k?=?0;?k?????????????????????????newNode.w[k]?=?rd.NextDouble();//w.Add(rd.NextDouble());?//初始化權(quán)值(隨機(jī))
????????????????????????newNode._w[k]?=?0;//.Add(0.0);?//初始化權(quán)值增量為0
????????????????????}
????????????????????newNode.k?=?0;//((i?>?0?&&?i?????????????????????newNode.lr=lRate;
????????????????????newNode.mturn=momentum;
????????????????????newlayer.Add(newNode);
????????????????}
????????????????netWork.Add(newlayer);
????????????}
????????????expectOut?=?new?double[outSum];
????????}
????????public?void?AddData(string?sLine)?{?//數(shù)據(jù)
????????????ArrayList?d?=?new?ArrayList();
????????????string?[]?num?=?sLine.Split(‘?‘‘\t‘);
????????????for?(int?i?=?0;?i?

?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2009-11-24?00:19??BP\
?????目錄???????????0??2009-11-24?00:19??BP\BP\
?????目錄???????????0??2009-11-24?00:19??BP\BP\BP\
?????文件?????????896??2009-11-09?22:37??BP\BP\BP.sln
?????文件???????23552??2010-01-20?09:57??BP\BP\BP.suo
?????文件???????12340??2009-11-16?11:33??BP\BP\BP\BP.cs
?????文件????????4571??2009-11-18?17:45??BP\BP\BP\BP.csproj
?????文件???????25635??2009-11-30?00:26??BP\BP\BP\Form1.Designer.cs
?????文件???????12028??2009-11-30?00:26??BP\BP\BP\Form1.cs
?????文件????????6012??2009-11-30?00:26??BP\BP\BP\Form1.resx
?????文件?????????154??2009-11-10?23:52??BP\BP\BP\Hiddenlayer.cs
?????文件?????????483??2009-11-11?08:50??BP\BP\BP\Program.cs
?????目錄???????????0??2009-11-24?00:19??BP\BP\BP\Properties\
?????文件????????1336??2009-11-09?22:37??BP\BP\BP\Properties\AssemblyInfo.cs
?????文件????????2854??2009-11-09?22:37??BP\BP\BP\Properties\Resources.Designer.cs
?????文件????????5612??2009-11-09?22:37??BP\BP\BP\Properties\Resources.resx
?????文件????????1087??2009-11-09?22:37??BP\BP\BP\Properties\Settings.Designer.cs
?????文件?????????249??2009-11-09?22:37??BP\BP\BP\Properties\Settings.settings
?????目錄???????????0??2009-11-24?00:19??BP\BP\BP\bin\
?????目錄???????????0??2009-11-24?00:19??BP\BP\BP\bin\Debug\
?????文件???????33280??2009-11-18?17:45??BP\BP\BP\bin\Debug\BP.exe
?????文件???????65024??2009-11-18?17:45??BP\BP\BP\bin\Debug\BP.pdb
?????文件???????14328??2010-01-20?09:57??BP\BP\BP\bin\Debug\BP.vshost.exe
?????文件?????????490??2007-07-21?02:33??BP\BP\BP\bin\Debug\BP.vshost.exe.manifest
?????文件??????335872??2007-11-28?17:13??BP\BP\BP\bin\Debug\ZedGraph.dll
?????文件?????1510947??2007-11-28?17:13??BP\BP\BP\bin\Debug\ZedGraph.xml
?????目錄???????????0??2009-11-24?00:19??BP\BP\BP\bin\Debug\de\
?????文件????????5120??2007-11-28?17:13??BP\BP\BP\bin\Debug\de\ZedGraph.resources.dll
?????目錄???????????0??2009-11-24?00:19??BP\BP\BP\bin\Debug\es\
?????文件????????5120??2007-11-28?17:13??BP\BP\BP\bin\Debug\es\ZedGraph.resources.dll
?????目錄???????????0??2009-11-24?00:19??BP\BP\BP\bin\Debug\fr\
............此處省略132個(gè)文件信息

評論

共有 條評論