public void SetDataSet(MLDataSet dataSet)
 {
     setColumn(dataSet.MetaData.ToList());
     setData(dataSet.Data);
     numCtrlNumForTest.Value = dataSet.TestRows;
     numberRadio.Checked     = !dataSet.IsPrecentige;
     presentigeRadio.Checked = dataSet.IsPrecentige;
 }
        public MLDataSet GetDataSet()
        {
            var ds = new MLDataSet();

            ds.Data     = m_strData;
            ds.MetaData = GetMetadata();
            ds.TestRows = (m_testData == null || m_testData.Count == 0) ? 0 : m_testData[0].RowCount;
            return(ds);
        }
 /// <summary>
 /// Create experiment based on Dataset
 /// </summary>
 /// <param name="dataset"></param>
 public Experiment(MLDataSet dataset)
 {
     //copy data
     m_strData = new string[dataset.Data.Length][];
     for (int i = 0; i < dataset.Data.Length; i++)
     {
         m_strData[i] = new string[dataset.Data[i].Length];
         for (int j = 0; j < dataset.Data[i].Length; j++)
         {
             m_strData[i][j] = dataset.Data[i][j];
         }
     }
     //
     Init(dataset.MetaData.ToList(), dataset.TestRows, dataset.IsPrecentige);
 }
        public MLDataSet GetDataSet(bool omitIgnored = false)
        {
            try
            {
                var data1 = new MLDataSet();
                //
                data1.MetaData = ParseHeader(omitIgnored);

                data1.TestRows     = (int)numCtrlNumForTest.Value;
                data1.IsPrecentige = !numberRadio.Checked;

                var strData = ParseData(data1.MetaData);

                //
                data1.Data = strData;
                return(data1);
            }
            catch (Exception)
            {
                throw;
            }
        }