コード例 #1
0
ファイル: Form1.cs プロジェクト: kovdryavlad/NeuralNetwork
        public Form1()
        {
            InitializeComponent();
            this.FormClosing += Form1_FormClosing;

            if (File.Exists(neuralNetworkFile))
            {
                m_neuralNetwork = NeuralNetworkBL.NeuralNetwork.Deserialize(neuralNetworkFile);
            }

            else
            {
                m_neuralNetwork = new NeuralNetworkBL.NeuralNetwork(new[] { 16 * 16, 100, 4 });
            }

            m_neuralNetwork.m_activationFunction = new LogisticFunction();

            findSampleDirectory();
        }