|
#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;
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Has BS degree on computer science, working as software engineer in istanbul.