Changeset 10221 for branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/DataPreprocessingView.cs
- Timestamp:
- 12/11/13 17:21:25 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/DataPreprocessingView.cs
r10220 r10221 1 using System.Windows.Forms; 1 #region License Information 2 /* HeuristicLab 3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 * 5 * This file is part of HeuristicLab. 6 * 7 * HeuristicLab is free software: you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation, either version 3 of the License, or 10 * (at your option) any later version. 11 * 12 * HeuristicLab is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>. 19 */ 20 #endregion 21 22 using System.Linq; 23 using System.Windows.Forms; 24 using HeuristicLab.Common; 25 using HeuristicLab.Core; 2 26 using HeuristicLab.Core.Views; 27 using HeuristicLab.Data; 3 28 using HeuristicLab.MainForm; 4 29 using HeuristicLab.MainForm.WindowsForms; 30 using HeuristicLab.Problems.DataAnalysis; 5 31 6 32 namespace HeuristicLab.DataPreprocessing { … … 36 62 MessageBox.Show("Success, now cloning... "); 37 63 64 Dataset dataset = Data.ExportToDataset(); 65 var variables = new CheckedItemList<StringValue>(Data.VariableNames.Select(s => new StringValue(s))).AsReadOnly(); 38 66 39 //Dataset ds = Data.ExportToDataset(); 40 //var cloner = new Cloner(); 67 var cloner = new Cloner(); 41 68 42 //cloner.RegisterClonedObject() 69 cloner.RegisterClonedObject(Content.DataAnalysisProblemData.Dataset, dataset); 70 cloner.RegisterClonedObject(Content.DataAnalysisProblemData.TrainingPartition, Data.TrainingPartition); 71 cloner.RegisterClonedObject(Content.DataAnalysisProblemData.TestPartition, Data.TestPartition); 72 cloner.RegisterClonedObject(Content.DataAnalysisProblemData.InputVariables, variables); 73 74 var item = cloner.Clone(Content.ParentItem); 75 76 MainFormManager.MainForm.ShowContent(item); 43 77 44 78 //var clone = null;
Note: See TracChangeset
for help on using the changeset viewer.