Encog.Engine.Data.BasicEngineData.CreatePair C# (CSharp) 메소드

CreatePair() 공개 정적인 메소드

Create a new neural data pair object of the correct size for the neural network that is being trained. This object will be passed to the getPair method to allow the neural data pair objects to be copied to it.
public static CreatePair ( int inputSize, int idealSize ) : IEngineData
inputSize int The size of the input data.
idealSize int The size of the ideal data.
리턴 IEngineData
        public static IEngineData CreatePair(int inputSize, int idealSize)
        {
            IEngineData result;

            if (idealSize > 0)
            {
                result = new BasicEngineData(new double[inputSize],
                        new double[idealSize]);
            }
            else
            {
                result = new BasicEngineData(new double[inputSize]);
            }

            return result;
        }