public void Train(XLSReader Reader, List<int> sample)
 {
     double[,] xy = new double[sample.Count, objPreparator.Count + 1];
     int i = 0, j = 0;
     foreach (int index in Reader.ReadRow(true, sample))
     {
         foreach (var obj in Reader.ReadColumn(index, 4))
         {
             xy[i, j] = objPreparator.GetValue(obj.Item1, obj.Item2);
             j++;
         }
         foreach (var obj in Reader.ReadColumn(index, columnStop: 1))
             xy[i, j] = double.Parse(obj.Item2);
         i++;
         j = 0;
     }
     NetWorker.Training(xy, sample.Count);
 }
        public void Train(XLSReader reader, List <int> sample)
        {
            double[,] xy = new double[sample.Count, countParams + 1];
            int i = 0, j = 0;

            foreach (int index in reader.ReadRow(true, sample))
            {
                foreach (var obj in reader.ReadColumn(index, 4))
                {
                    xy[i, j] = Contactor(obj.Item1, obj.Item2);
                    j++;
                }
                foreach (var obj in reader.ReadColumn(index, columnStop: 1))
                {
                    xy[i, j] = Contactor(obj.Item1, obj.Item2);
                }
                i++;
                j = 0;
            }
            NetWorker.Training(xy, sample.Count);
        }