public override void Initialize(string name, XmlElement xmlConfig)
        {
            base.Initialize(name, xmlConfig);

            _dataset = CreateDataset();
            _dataset.LoadFromFile(DatasetFileName);

            samples = _dataset.GetSamplesMatrix();

            nbInputs = _dataset.InputCount;
            n = samples.GetLength(1);
            m = samples.GetLength(2);
        }
Exemple #2
0
        public override void Initialize(string name, XmlElement xmlConfig)
        {
            base.Initialize(name, xmlConfig);

            _dataset = CreateDataset();
            _dataset.LoadFromFile(DatasetFileName);

            samples = _dataset.GetSamplesMatrix();

            nbInputs = _dataset.InputCount;
            n        = samples.GetLength(1);
            m        = samples.GetLength(2);
        }
        public override void Initialize(string name, XmlElement xmlConfig)
        {
            base.Initialize(name, xmlConfig);

            _dataset = CreateDataset();
            _dataset.LoadFromFile(DatasetFileName);

            nbInputs = _dataset.InputCount;
            n = _dataset.InputSamples.Count(sampleRow => sampleRow.Last() == 0);
            m = _dataset.InputSamples.First().Count();
            f = filter.GetLength(0);
            f2 = filter.Length; // f^2
            t = (f - 1) / 2; // filter thickness
        }
        public override void Initialize(string name, XmlElement xmlConfig)
        {
            base.Initialize(name, xmlConfig);

            _dataset = CreateDataset();
            _dataset.LoadFromFile(DatasetFileName);

            nbInputs = _dataset.InputCount;
            n        = _dataset.InputSamples.Count(sampleRow => sampleRow.Last() == 0);
            m        = _dataset.InputSamples.First().Count();
            f        = filter.GetLength(0);
            f2       = filter.Length; // f^2
            t        = (f - 1) / 2;   // filter thickness
        }