Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/11/13 17:21:25 (11 years ago)
Author:
pfleck
Message:
  • Cloned Algorithm and swapped Dataset an other members of the DataAnalysisProblemData
  • Refactored GetMostOuterContent
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
     22using System.Linq;
     23using System.Windows.Forms;
     24using HeuristicLab.Common;
     25using HeuristicLab.Core;
    226using HeuristicLab.Core.Views;
     27using HeuristicLab.Data;
    328using HeuristicLab.MainForm;
    429using HeuristicLab.MainForm.WindowsForms;
     30using HeuristicLab.Problems.DataAnalysis;
    531
    632namespace HeuristicLab.DataPreprocessing {
     
    3662      MessageBox.Show("Success, now cloning... ");
    3763
     64      Dataset dataset = Data.ExportToDataset();
     65      var variables = new CheckedItemList<StringValue>(Data.VariableNames.Select(s => new StringValue(s))).AsReadOnly();
    3866
    39       //Dataset ds = Data.ExportToDataset();
    40       //var cloner = new Cloner();
     67      var cloner = new Cloner();
    4168
    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);
    4377
    4478      //var clone = null;
Note: See TracChangeset for help on using the changeset viewer.