📄 bpbase.cs
字号:
#region Copyright (c), Some Rights Reserved
/*##########################################################################
*
* BPBase.cs
* -------------------------------------------------------------------------
* By
* Murat FIRAT, June 2007
*
* -------------------------------------------------------------------------
* Description:
* BPBase.cs Contains Common Structs For Backpropagation Neural Network
* And a Custom EventArgs Class For Neural Network
*
* -------------------------------------------------------------------------
###########################################################################*/
#endregion
using System;
using System.Collections.Generic;
using System.Text;
namespace BPSimplified.Lib
{
[Serializable]
struct PreInput
{
public double Value;
public double[] Weights;
};
[Serializable]
struct Input
{
public double InputSum;
public double Output;
public double Error;
public double[] Weights;
};
[Serializable]
struct Hidden
{
public double InputSum;
public double Output;
public double Error;
public double[] Weights;
};
[Serializable]
struct Output<T> where T : IComparable<T>
{
public double InputSum;
public double output;
public double Error;
public double Target;
public T Value;
};
public class NeuralEventArgs : EventArgs
{
public bool Stop = false;
public double CurrentError = 0;
public int CurrentIteration = 0;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -