Changeset 11158
- Timestamp:
- 07/09/14 13:15:37 (10 years ago)
- Location:
- stable
- Files:
-
- 9 deleted
- 46 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources reverse-merged: 11114,11116,11156 /branches/DataPreprocessing removed
- Property svn:mergeinfo changed
-
stable/HeuristicLab 3.3.sln
r11157 r11158 68 68 {96E5ED5B-187D-4012-9CDA-D85CDAD38342} = {96E5ED5B-187D-4012-9CDA-D85CDAD38342} 69 69 {C664305E-497C-4533-A140-967DEDB05C19} = {C664305E-497C-4533-A140-967DEDB05C19} 70 {3FC7515E-D8A0-41FE-8CFA-50E3ADA61A1E} = {3FC7515E-D8A0-41FE-8CFA-50E3ADA61A1E}71 70 {7EA0985E-A1D6-4FA7-B30A-2633FDFB01F0} = {7EA0985E-A1D6-4FA7-B30A-2633FDFB01F0} 72 71 {E10F395F-C8A6-48AD-B470-9AA7A1F43809} = {E10F395F-C8A6-48AD-B470-9AA7A1F43809} 73 72 {B7A64A60-B538-479F-9C47-A3180C458F6C} = {B7A64A60-B538-479F-9C47-A3180C458F6C} 74 73 {0C378762-D5DB-488A-8931-2BA42B1B7CBF} = {0C378762-D5DB-488A-8931-2BA42B1B7CBF} 75 {3B90F866-70F8-43EF-A541-51819D255B7B} = {3B90F866-70F8-43EF-A541-51819D255B7B}76 74 {07486E68-1517-4B9D-A58D-A38E99AE71AB} = {07486E68-1517-4B9D-A58D-A38E99AE71AB} 77 75 {4AE3FC69-C575-42D2-BC46-0FAD5850EFC5} = {4AE3FC69-C575-42D2-BC46-0FAD5850EFC5} … … 117 115 {AB687BBE-1BFE-476B-906D-44237135431D} = {AB687BBE-1BFE-476B-906D-44237135431D} 118 116 {66D249C3-A01D-42A8-82A2-919BC8EC3D83} = {66D249C3-A01D-42A8-82A2-919BC8EC3D83} 119 {362A5DC3-969D-43FB-A552-D2F52B780188} = {362A5DC3-969D-43FB-A552-D2F52B780188}120 117 {21977CC3-1757-4B3B-87BD-FF817AAA900F} = {21977CC3-1757-4B3B-87BD-FF817AAA900F} 121 118 {E4CFB0C3-0589-4893-B38E-8BEDF885C765} = {E4CFB0C3-0589-4893-B38E-8BEDF885C765} … … 398 395 EndProject 399 396 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.Problems.ExternalEvaluation.Matlab-3.3", "HeuristicLab.Problems.ExternalEvaluation.Matlab\3.3\HeuristicLab.Problems.ExternalEvaluation.Matlab-3.3.csproj", "{362A5DC3-969D-43FB-A552-D2F52B780188}" 400 EndProject401 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.DataPreprocessing-3.4", "HeuristicLab.DataPreprocessing\3.4\HeuristicLab.DataPreprocessing-3.4.csproj", "{3B90F866-70F8-43EF-A541-51819D255B7B}"402 EndProject403 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.DataPreprocessing.Views-3.4", "HeuristicLab.DataPreprocessing.Views\3.4\HeuristicLab.DataPreprocessing.Views-3.4.csproj", "{3FC7515E-D8A0-41FE-8CFA-50E3ADA61A1E}"404 397 EndProject 405 398 Global … … 1937 1930 {362A5DC3-969D-43FB-A552-D2F52B780188}.Release|x86.ActiveCfg = Release|x86 1938 1931 {362A5DC3-969D-43FB-A552-D2F52B780188}.Release|x86.Build.0 = Release|x86 1939 {3B90F866-70F8-43EF-A541-51819D255B7B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU1940 {3B90F866-70F8-43EF-A541-51819D255B7B}.Debug|Any CPU.Build.0 = Debug|Any CPU1941 {3B90F866-70F8-43EF-A541-51819D255B7B}.Debug|x64.ActiveCfg = Debug|x641942 {3B90F866-70F8-43EF-A541-51819D255B7B}.Debug|x64.Build.0 = Debug|x641943 {3B90F866-70F8-43EF-A541-51819D255B7B}.Debug|x86.ActiveCfg = Debug|x861944 {3B90F866-70F8-43EF-A541-51819D255B7B}.Debug|x86.Build.0 = Debug|x861945 {3B90F866-70F8-43EF-A541-51819D255B7B}.Release|Any CPU.ActiveCfg = Release|Any CPU1946 {3B90F866-70F8-43EF-A541-51819D255B7B}.Release|Any CPU.Build.0 = Release|Any CPU1947 {3B90F866-70F8-43EF-A541-51819D255B7B}.Release|x64.ActiveCfg = Release|x641948 {3B90F866-70F8-43EF-A541-51819D255B7B}.Release|x64.Build.0 = Release|x641949 {3B90F866-70F8-43EF-A541-51819D255B7B}.Release|x86.ActiveCfg = Release|x861950 {3B90F866-70F8-43EF-A541-51819D255B7B}.Release|x86.Build.0 = Release|x861951 {3FC7515E-D8A0-41FE-8CFA-50E3ADA61A1E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU1952 {3FC7515E-D8A0-41FE-8CFA-50E3ADA61A1E}.Debug|Any CPU.Build.0 = Debug|Any CPU1953 {3FC7515E-D8A0-41FE-8CFA-50E3ADA61A1E}.Debug|x64.ActiveCfg = Debug|Any CPU1954 {3FC7515E-D8A0-41FE-8CFA-50E3ADA61A1E}.Debug|x86.ActiveCfg = Debug|Any CPU1955 {3FC7515E-D8A0-41FE-8CFA-50E3ADA61A1E}.Release|Any CPU.ActiveCfg = Release|Any CPU1956 {3FC7515E-D8A0-41FE-8CFA-50E3ADA61A1E}.Release|Any CPU.Build.0 = Release|Any CPU1957 {3FC7515E-D8A0-41FE-8CFA-50E3ADA61A1E}.Release|x64.ActiveCfg = Release|Any CPU1958 {3FC7515E-D8A0-41FE-8CFA-50E3ADA61A1E}.Release|x86.ActiveCfg = Release|Any CPU1959 1932 EndGlobalSection 1960 1933 GlobalSection(SolutionProperties) = preSolution -
stable/HeuristicLab.Algorithms.DataAnalysis
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Algorithms.DataAnalysis reverse-merged: 11114 /branches/DataPreprocessing/HeuristicLab.Algorithms.DataAnalysis removed
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Analysis
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Analysis reverse-merged: 11114 /branches/DataPreprocessing/HeuristicLab.Analysis removed
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Core.Views/3.3/TypeSelector.cs
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Core.Views/3.3/TypeSelector.cs reverse-merged: 11114 /branches/DataPreprocessing/HeuristicLab.Core.Views/3.3/TypeSelector.cs removed
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Data.Views/3.3
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Data.Views/3.3 reverse-merged: 11114 /branches/DataPreprocessing/HeuristicLab.Data.Views/3.3 removed
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Data.Views/3.3/StringConvertibleMatrixView.cs
r11157 r11158 36 36 public partial class StringConvertibleMatrixView : AsynchronousContentView { 37 37 protected int[] virtualRowIndices; 38 pr otectedList<KeyValuePair<int, SortOrder>> sortedColumnIndices;38 private List<KeyValuePair<int, SortOrder>> sortedColumnIndices; 39 39 private RowComparer rowComparer; 40 40 … … 261 261 262 262 #region DataGridView Events 263 pr otected virtualvoid dataGridView_CellValidating(object sender, DataGridViewCellValidatingEventArgs e) {263 private void dataGridView_CellValidating(object sender, DataGridViewCellValidatingEventArgs e) { 264 264 if (!dataGridView.ReadOnly) { 265 265 string errorMessage; … … 270 270 } 271 271 } 272 pr otected virtualvoid dataGridView_CellParsing(object sender, DataGridViewCellParsingEventArgs e) {272 private void dataGridView_CellParsing(object sender, DataGridViewCellParsingEventArgs e) { 273 273 if (!dataGridView.ReadOnly) { 274 274 string value = e.Value.ToString(); … … 364 364 } 365 365 366 pr otected virtualvoid PasteValuesToDataGridView() {366 private void PasteValuesToDataGridView() { 367 367 string[,] values = SplitClipboardString(Clipboard.GetText()); 368 368 int rowIndex = 0; … … 432 432 } 433 433 434 pr otectedvoid Sort() {434 private void Sort() { 435 435 virtualRowIndices = Sort(sortedColumnIndices); 436 436 UpdateSortGlyph(); … … 542 542 } 543 543 544 pr otected virtualvoid dataGridView_SelectionChanged(object sender, EventArgs e) {544 private void dataGridView_SelectionChanged(object sender, EventArgs e) { 545 545 string stringFormat = "{0,20:0.0000}"; 546 546 statisticsTextBox.Text = string.Empty; -
stable/HeuristicLab.Data/3.3
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Data/3.3 reverse-merged: 11114 /branches/DataPreprocessing/HeuristicLab.Data/3.3 removed
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Encodings.IntegerVectorEncoding
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Encodings.IntegerVectorEncoding reverse-merged: 11114 /branches/DataPreprocessing/HeuristicLab.Encodings.IntegerVectorEncoding removed
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Encodings.PermutationEncoding
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Encodings.PermutationEncoding reverse-merged: 11114 /branches/DataPreprocessing/HeuristicLab.Encodings.PermutationEncoding removed
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding reverse-merged: 11114 /branches/DataPreprocessing/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding removed
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views reverse-merged: 11114 /branches/DataPreprocessing/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views removed
- Property svn:mergeinfo changed
-
stable/HeuristicLab.ExtLibs
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.ExtLibs reverse-merged: 11114 /branches/DataPreprocessing/HeuristicLab.ExtLibs removed
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Persistence
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Persistence reverse-merged: 11114 /branches/DataPreprocessing/HeuristicLab.Persistence removed
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.DataAnalysis
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Problems.DataAnalysis reverse-merged: 11114,11156 /branches/DataPreprocessing/HeuristicLab.Problems.DataAnalysis removed
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.DataAnalysis.Symbolic
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic reverse-merged: 11114,11156 /branches/DataPreprocessing/HeuristicLab.Problems.DataAnalysis.Symbolic removed
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification reverse-merged: 11114 /branches/DataPreprocessing/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification removed
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification.Views
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification.Views reverse-merged: 11114 /branches/DataPreprocessing/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification.Views removed
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression reverse-merged: 11114 /branches/DataPreprocessing/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression removed
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression.Views
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression.Views reverse-merged: 11114,11156 /branches/DataPreprocessing/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression.Views removed
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression.Views/3.4/SymbolicRegressionSolutionView.Designer.cs
r11157 r11158 19 19 */ 20 20 #endregion 21 21 22 22 23 namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Regression.Views { … … 48 49 this.exportFileDialog = new System.Windows.Forms.SaveFileDialog(); 49 50 this.btnSimplify = new System.Windows.Forms.Button(); 50 this.transformModelButton = new System.Windows.Forms.Button();51 51 ((System.ComponentModel.ISupportInitialize)(this.splitContainer)).BeginInit(); 52 52 this.splitContainer.Panel1.SuspendLayout(); … … 61 61 this.flowLayoutPanel.Controls.Add(this.btnSimplify); 62 62 this.flowLayoutPanel.Controls.Add(this.exportButton); 63 this.flowLayoutPanel.Controls.Add(this.transformModelButton);64 63 // 65 64 // btnSimplify … … 91 90 this.toolTip.SetToolTip(this.exportButton, "Exports the symbolic regression solution to Excel."); 92 91 // 93 // transformModelButton94 //95 this.transformModelButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)));96 this.transformModelButton.Image = HeuristicLab.Common.Resources.VSImageLibrary.Event;97 this.transformModelButton.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;98 this.transformModelButton.Name = "transformModelButton";99 this.transformModelButton.Size = new System.Drawing.Size(135, 24);100 this.transformModelButton.TabIndex = 9;101 this.transformModelButton.Text = "Backtransform Model";102 this.transformModelButton.TextAlign = System.Drawing.ContentAlignment.MiddleRight;103 this.transformModelButton.UseVisualStyleBackColor = true;104 this.transformModelButton.Click += new System.EventHandler(this.transformModelButton_Click);105 this.toolTip.SetToolTip(this.transformModelButton, "Backtransform model based on the stored transformations.");106 //107 92 // SymbolicRegressionSolutionView 108 93 // … … 123 108 protected System.Windows.Forms.Button exportButton; 124 109 protected System.Windows.Forms.Button btnSimplify; 125 protected System.Windows.Forms.Button transformModelButton;126 110 } 127 111 } -
stable/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression.Views/3.4/SymbolicRegressionSolutionView.cs
r11157 r11158 45 45 btnSimplify.Enabled = Content != null && !Locked && Content.ProblemData.TrainingIndices.Any(); // simplification is only possible if there are trainings samples 46 46 exportButton.Enabled = Content != null && !Locked; 47 transformModelButton.Visible = Content != null && Content.ProblemData.Transformations.Any();48 transformModelButton.Enabled = Content != null && !Locked;49 47 } 50 48 51 49 private void btn_SimplifyModel_Click(object sender, EventArgs e) { 52 varview = new InteractiveSymbolicRegressionSolutionSimplifierView();50 InteractiveSymbolicRegressionSolutionSimplifierView view = new InteractiveSymbolicRegressionSolutionSimplifierView(); 53 51 view.Content = (SymbolicRegressionSolution)this.Content.Clone(); 54 52 view.Show(); … … 59 57 exportFileDialog.Filter = exporter.FileTypeFilter; 60 58 if (exportFileDialog.ShowDialog(this) == DialogResult.OK) { 59 61 60 var name = exportFileDialog.FileName; 62 61 using (BackgroundWorker bg = new BackgroundWorker()) { … … 68 67 } 69 68 } 70 71 private void transformModelButton_Click(object sender, EventArgs e) {72 var mapper = new TransformationToSymbolicTreeMapper();73 var transformator = new SymbolicExpressionTreeBacktransformator(mapper);74 75 var transformations = Content.ProblemData.Transformations;76 var targetVar = Content.ProblemData.TargetVariable;77 78 var transformedModel = (ISymbolicRegressionModel)transformator.Backtransform(Content.Model, transformations, targetVar);79 var transformedSolution = new SymbolicRegressionSolution(transformedModel, (IRegressionProblemData)Content.ProblemData.Clone());80 81 MainFormManager.MainForm.ShowContent(transformedSolution);82 }83 69 } 84 70 } -
stable/HeuristicLab.Problems.DataAnalysis.Symbolic.Views
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Views reverse-merged: 11114 /branches/DataPreprocessing/HeuristicLab.Problems.DataAnalysis.Symbolic.Views removed
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/HeuristicLab.Problems.DataAnalysis.Symbolic-3.4.csproj
r11157 r11158 126 126 <SubType>Code</SubType> 127 127 </Compile> 128 <Compile Include="Interfaces\IModelBacktransformator.cs" />129 <Compile Include="SymbolicExpressionTreeBacktransformator.cs" />130 128 <Compile Include="SymbolicDataAnalysisExpressionPruningOperator.cs" /> 131 129 <Compile Include="Analyzers\SymbolicDataAnalysisVariableFrequencyAnalyzer.cs" /> … … 144 142 <Compile Include="Crossovers\SymbolicDataAnalysisExpressionSemanticSimilarityCrossover.cs" /> 145 143 <Compile Include="Formatters\SymbolicDataAnalysisExpressionExcelFormatter.cs" /> 146 144 <Compile Include="Formatters\SymbolicDataAnalysisExpressionSmalltalkFormatter.cs" /> 147 145 <Compile Include="Interfaces\ISymbolicDataAnalysisExpressionCrossover.cs" /> 148 146 <Compile Include="Interfaces\ISymbolicDataAnalysisImpactValuesCalculator.cs" /> … … 224 222 <Compile Include="Symbols\VariableConditionTreeNode.cs" /> 225 223 <Compile Include="Symbols\VariableTreeNode.cs" /> 226 <Compile Include="TransformationToSymbolicTreeMapper.cs" />227 224 <None Include="HeuristicLab.snk" /> 228 225 <None Include="Plugin.cs.frame" /> -
stable/HeuristicLab.Problems.DataAnalysis.Trading/3.4/ProblemData.cs
r11157 r11158 1627 1627 } 1628 1628 1629 public ProblemData(Dataset dataset, IEnumerable<string> allowedInputVariables, string targetVariable , IEnumerable<ITransformation> transformations = null)1630 : base(dataset, allowedInputVariables , transformations ?? Enumerable.Empty<ITransformation>()) {1629 public ProblemData(Dataset dataset, IEnumerable<string> allowedInputVariables, string targetVariable) 1630 : base(dataset, allowedInputVariables) { 1631 1631 var variables = InputVariables.Select(x => x.AsReadOnly()).ToList(); 1632 1632 Parameters.Add(new ConstrainedValueParameter<StringValue>(PriceChangeVariableParameterName, new ItemSet<StringValue>(variables), variables.First(x => x.Value == targetVariable))); -
stable/HeuristicLab.Problems.DataAnalysis.Views
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Problems.DataAnalysis.Views reverse-merged: 11114 /branches/DataPreprocessing/HeuristicLab.Problems.DataAnalysis.Views removed
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.DataAnalysis.Views/3.4/FeatureCorrelation/AbstractFeatureCorrelationView.cs
r11157 r11158 57 57 partitionComboBox.DataSource = Partitions; 58 58 partitionComboBox.SelectedItem = TRAININGSAMPLES; 59 progressPanel.Visible = false;60 59 } 61 60 … … 79 78 CalculateCorrelation(); 80 79 } else { 81 progressPanel.Visible = false;82 80 dataView.Maximum = 0; 83 81 dataView.Minimum = 0; -
stable/HeuristicLab.Problems.DataAnalysis.Views/3.4/HeuristicLab.Problems.DataAnalysis.Views-3.4.csproj
r11157 r11158 169 169 <DependentUpon>FeatureCorrelationView.cs</DependentUpon> 170 170 </Compile> 171 <Compile Include="Interfaces\IDataPreprocessorStarter.cs" />172 171 <Compile Include="MenuItems\ShrinkDataAnalysisRunsMenuItem.cs" /> 173 172 <Compile Include="Plugin.cs" /> -
stable/HeuristicLab.Problems.DataAnalysis.Views/3.4/ProblemDataView.Designer.cs
r11157 r11158 46 46 private void InitializeComponent() { 47 47 this.FeatureCorrelationButton = new System.Windows.Forms.Button(); 48 this.DataPreprocessingButton = new System.Windows.Forms.Button();49 48 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit(); 50 49 this.SuspendLayout(); … … 72 71 this.FeatureCorrelationButton.Click += new System.EventHandler(this.FeatureCorrelationButton_Click); 73 72 // 74 // DataPreprocessingButton75 //76 this.DataPreprocessingButton.Location = new System.Drawing.Point(311, 45);77 this.DataPreprocessingButton.Name = "DataPreprocessingButton";78 this.DataPreprocessingButton.Size = new System.Drawing.Size(121, 24);79 this.DataPreprocessingButton.TabIndex = 5;80 this.DataPreprocessingButton.Text = "Data Preprocessing";81 this.DataPreprocessingButton.UseVisualStyleBackColor = true;82 this.DataPreprocessingButton.Click += new System.EventHandler(this.DataPreprocessingButton_Click);83 //84 73 // ProblemDataView 85 74 // 86 75 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 87 76 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 88 this.Controls.Add(this.DataPreprocessingButton);89 77 this.Controls.Add(this.FeatureCorrelationButton); 90 78 this.Name = "ProblemDataView"; … … 94 82 this.Controls.SetChildIndex(this.nameLabel, 0); 95 83 this.Controls.SetChildIndex(this.FeatureCorrelationButton, 0); 96 this.Controls.SetChildIndex(this.DataPreprocessingButton, 0);97 84 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit(); 98 85 this.ResumeLayout(false); … … 104 91 105 92 protected System.Windows.Forms.Button FeatureCorrelationButton; 106 protected System.Windows.Forms.Button DataPreprocessingButton;107 93 108 94 } -
stable/HeuristicLab.Problems.DataAnalysis.Views/3.4/ProblemDataView.cs
r11157 r11158 29 29 using HeuristicLab.MainForm; 30 30 using HeuristicLab.MainForm.WindowsForms; 31 using HeuristicLab.PluginInfrastructure;32 31 33 32 namespace HeuristicLab.Problems.DataAnalysis.Views { … … 101 100 e.Effect = e.AllowedEffect; 102 101 } 103 104 private void DataPreprocessingButton_Click(object sender, EventArgs e) {105 var preprocessingStarters = ApplicationManager.Manager.GetInstances<IDataPreprocessorStarter>();106 var starter = preprocessingStarters.FirstOrDefault();107 // TODO: handle possible multiple starters108 if (starter != null) {109 starter.Start(Content, this);110 }111 }112 102 } 113 103 } -
stable/HeuristicLab.Problems.DataAnalysis/3.4/Dataset.cs
r11157 r11158 170 170 yield return value; 171 171 } 172 173 public IEnumerable<string> GetStringValues(string variableName) {174 IList list;175 if (!variableValues.TryGetValue(variableName, out list))176 throw new ArgumentException("The variable " + variableName + " does not exist in the dataset.");177 List<string> values = list as List<string>;178 if (values == null) throw new ArgumentException("The variable " + variableName + " is not a string variable.");179 180 //mkommend yield return used to enable lazy evaluation181 foreach (string value in values)182 yield return value;183 }184 185 public IEnumerable<DateTime> GetDateTimeValues(string variableName) {186 IList list;187 if (!variableValues.TryGetValue(variableName, out list))188 throw new ArgumentException("The variable " + variableName + " does not exist in the dataset.");189 List<DateTime> values = list as List<DateTime>;190 if (values == null) throw new ArgumentException("The variable " + variableName + " is not a datetime variable.");191 192 //mkommend yield return used to enable lazy evaluation193 foreach (DateTime value in values)194 yield return value;195 }196 197 172 public ReadOnlyCollection<double> GetReadOnlyDoubleValues(string variableName) { 198 173 IList list; … … 219 194 220 195 return rows.Select(index => values[index]); 221 }222 223 public bool VariableHasType<T>(string variableName) {224 return variableValues[variableName] is IList<T>;225 196 } 226 197 -
stable/HeuristicLab.Problems.DataAnalysis/3.4/HeuristicLab.Problems.DataAnalysis-3.4.csproj
r11157 r11158 141 141 <Compile Include="Implementation\TimeSeriesPrognosis\TimeSeriesPrognosisSolution.cs" /> 142 142 <Compile Include="Implementation\TimeSeriesPrognosis\TimeSeriesPrognosisSolutionBase.cs" /> 143 <Compile Include="Implementation\Transformations\CopyColumnTransformation.cs" />144 <Compile Include="Implementation\Transformations\ExponentialTransformation.cs" />145 <Compile Include="Implementation\Transformations\LinearTransformation.cs" />146 <Compile Include="Implementation\Transformations\LogarithmicTransformation.cs" />147 <Compile Include="Implementation\Transformations\PowerTransformation.cs" />148 <Compile Include="Implementation\Transformations\ReciprocalTransformation.cs" />149 <Compile Include="Implementation\Transformations\ShiftStandardDistributionTransformation.cs" />150 <Compile Include="Implementation\Transformations\ShiftToRangeTransformation.cs" />151 <Compile Include="Implementation\Transformations\Transformation.cs" />152 143 <Compile Include="Interfaces\Classification\IClassificationEnsembleModel.cs"> 153 144 <SubType>Code</SubType> … … 159 150 <Compile Include="Interfaces\IDataAnalysisSolutionExporter.cs" /> 160 151 <Compile Include="Interfaces\IDependencyCalculator.cs" /> 161 <Compile Include="Interfaces\ITransformation.cs" />162 <Compile Include="Interfaces\ITransformationMapper.cs" />163 152 <Compile Include="Interfaces\Regression\IRegressionEnsembleModel.cs"> 164 153 <SubType>Code</SubType> -
stable/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Classification/ClassificationProblemData.cs
r11157 r11158 300 300 } 301 301 302 public ClassificationProblemData(Dataset dataset, IEnumerable<string> allowedInputVariables, string targetVariable , IEnumerable<ITransformation> transformations = null)303 : base(dataset, allowedInputVariables , transformations ?? Enumerable.Empty<ITransformation>()) {302 public ClassificationProblemData(Dataset dataset, IEnumerable<string> allowedInputVariables, string targetVariable) 303 : base(dataset, allowedInputVariables) { 304 304 var validTargetVariableValues = CheckVariablesForPossibleTargetVariables(dataset).Select(x => new StringValue(x).AsReadOnly()).ToList(); 305 305 var target = validTargetVariableValues.Where(x => x.Value == targetVariable).DefaultIfEmpty(validTargetVariableValues.First()).First(); -
stable/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Clustering/ClusteringProblemData.cs
r11157 r11158 21 21 22 22 using System.Collections.Generic; 23 using System.Linq;24 23 using HeuristicLab.Common; 25 24 using HeuristicLab.Core; … … 87 86 } 88 87 89 public ClusteringProblemData(Dataset dataset, IEnumerable<string> allowedInputVariables , IEnumerable<ITransformation> transformations = null)90 : base(dataset, allowedInputVariables , transformations ?? Enumerable.Empty<ITransformation>()) {88 public ClusteringProblemData(Dataset dataset, IEnumerable<string> allowedInputVariables) 89 : base(dataset, allowedInputVariables) { 91 90 } 92 91 } -
stable/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/DataAnalysisProblemData.cs
r11157 r11158 38 38 protected const string TrainingPartitionParameterName = "TrainingPartition"; 39 39 protected const string TestPartitionParameterName = "TestPartition"; 40 protected const string TransformationsParameterName = "Transformations";41 40 42 41 #region parameter properites … … 52 51 public IFixedValueParameter<IntRange> TestPartitionParameter { 53 52 get { return (IFixedValueParameter<IntRange>)Parameters[TestPartitionParameterName]; } 54 }55 public IFixedValueParameter<ReadOnlyItemList<ITransformation>> TransformationsParameter {56 get { return (IFixedValueParameter<ReadOnlyItemList<ITransformation>>)Parameters[TransformationsParameterName]; }57 53 } 58 54 #endregion … … 93 89 } 94 90 95 public IEnumerable<ITransformation> Transformations {96 get { return TransformationsParameter.Value; }97 }98 99 91 public virtual bool IsTrainingSample(int index) { 100 92 return index >= 0 && index < Dataset.Rows && … … 119 111 [StorableHook(HookType.AfterDeserialization)] 120 112 private void AfterDeserialization() { 121 if (!Parameters.ContainsKey(TransformationsParameterName)) {122 Parameters.Add(new FixedValueParameter<ReadOnlyItemList<ITransformation>>(TransformationsParameterName, "", new ItemList<ITransformation>().AsReadOnly()));123 TransformationsParameter.Hidden = true;124 }125 113 RegisterEventHandlers(); 126 114 } 127 115 128 protected DataAnalysisProblemData(Dataset dataset, IEnumerable<string> allowedInputVariables , IEnumerable<ITransformation> transformations = null) {116 protected DataAnalysisProblemData(Dataset dataset, IEnumerable<string> allowedInputVariables) { 129 117 if (dataset == null) throw new ArgumentNullException("The dataset must not be null."); 130 118 if (allowedInputVariables == null) throw new ArgumentNullException("The allowedInputVariables must not be null."); … … 142 130 int testPartitionEnd = dataset.Rows; 143 131 144 var transformationsList = new ItemList<ITransformation>(transformations ?? Enumerable.Empty<ITransformation>());145 146 132 Parameters.Add(new FixedValueParameter<Dataset>(DatasetParameterName, "", dataset)); 147 133 Parameters.Add(new FixedValueParameter<ReadOnlyCheckedItemList<StringValue>>(InputVariablesParameterName, "", inputVariables.AsReadOnly())); 148 134 Parameters.Add(new FixedValueParameter<IntRange>(TrainingPartitionParameterName, "", new IntRange(trainingPartitionStart, trainingPartitionEnd))); 149 135 Parameters.Add(new FixedValueParameter<IntRange>(TestPartitionParameterName, "", new IntRange(testPartitionStart, testPartitionEnd))); 150 Parameters.Add(new FixedValueParameter<ReadOnlyItemList<ITransformation>>(TransformationsParameterName, "", transformationsList.AsReadOnly()));151 152 TransformationsParameter.Hidden = true;153 136 154 137 ((ValueParameter<Dataset>)DatasetParameter).ReactOnValueToStringChangedAndValueItemImageChanged = false; … … 161 144 TrainingPartition.ValueChanged += new EventHandler(Parameter_ValueChanged); 162 145 TestPartition.ValueChanged += new EventHandler(Parameter_ValueChanged); 163 TransformationsParameter.ValueChanged += new EventHandler(Parameter_ValueChanged);164 146 } 165 147 -
stable/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Regression/RegressionProblemData.cs
r11157 r11158 137 137 } 138 138 139 public RegressionProblemData(Dataset dataset, IEnumerable<string> allowedInputVariables, string targetVariable , IEnumerable<ITransformation> transformations = null)140 : base(dataset, allowedInputVariables , transformations ?? Enumerable.Empty<ITransformation>()) {139 public RegressionProblemData(Dataset dataset, IEnumerable<string> allowedInputVariables, string targetVariable) 140 : base(dataset, allowedInputVariables) { 141 141 var variables = InputVariables.Select(x => x.AsReadOnly()).ToList(); 142 142 Parameters.Add(new ConstrainedValueParameter<StringValue>(TargetVariableParameterName, new ItemSet<StringValue>(variables), variables.Where(x => x.Value == targetVariable).First())); -
stable/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/TimeSeriesPrognosis/TimeSeriesPrognosisProblemData.cs
r11157 r11158 1582 1582 TrainingPartition.Start = 50; 1583 1583 } 1584 public TimeSeriesPrognosisProblemData(Dataset dataset, IEnumerable<string> allowedInputVariables, string targetVariable , IEnumerable<ITransformation> transformations = null)1585 : base(dataset, allowedInputVariables, targetVariable , transformations ?? Enumerable.Empty<ITransformation>()) {1584 public TimeSeriesPrognosisProblemData(Dataset dataset, IEnumerable<string> allowedInputVariables, string targetVariable) 1585 : base(dataset, allowedInputVariables, targetVariable) { 1586 1586 Parameters.Add(new FixedValueParameter<IntValue>(TrainingHorizonParameterName, "Specifies the horizon (how far the prognosis reaches in the future) for each training sample.", new IntValue(1))); 1587 1587 Parameters.Add(new FixedValueParameter<IntValue>(TestHorizonParameterName, "Specifies the horizon (how far the prognosis reaches in the future) for each test sample.", new IntValue(1))); … … 1643 1643 1644 1644 var trainingDataStart = TrainingIndices.First(); 1645 1645 1646 1646 base.AdjustProblemDataProperties(problemData); 1647 1647 1648 1648 TestPartition.Start = trainingDataStart; 1649 1649 -
stable/HeuristicLab.Problems.DataAnalysis/3.4/Interfaces/IDataAnalysisProblemData.cs
r11157 r11158 39 39 IEnumerable<int> TestIndices { get; } 40 40 41 IEnumerable<ITransformation> Transformations { get; }42 43 41 bool IsTrainingSample(int index); 44 42 bool IsTestSample(int index); -
stable/HeuristicLab.Problems.DataAnalysis/3.4/Plugin.cs.frame
r11157 r11158 37 37 [PluginDependency("HeuristicLab.Parameters", "3.3")] 38 38 [PluginDependency("HeuristicLab.Persistence", "3.3")] 39 [PluginDependency("HeuristicLab.Problems.Instances", "3.3")] 39 [PluginDependency("HeuristicLab.Problems.Instances", "3.3")] 40 40 public class HeuristicLabProblemsDataAnalysisPlugin : PluginBase { 41 41 } -
stable/HeuristicLab.Problems.Instances.DataAnalysis
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Problems.Instances.DataAnalysis reverse-merged: 11114 /branches/DataPreprocessing/HeuristicLab.Problems.Instances.DataAnalysis removed
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.QuadraticAssignment
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Problems.QuadraticAssignment reverse-merged: 11114 /branches/DataPreprocessing/HeuristicLab.Problems.QuadraticAssignment removed
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.TestFunctions
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Problems.TestFunctions reverse-merged: 11114 /branches/DataPreprocessing/HeuristicLab.Problems.TestFunctions removed
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.TravelingSalesman.Views
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Problems.TravelingSalesman.Views reverse-merged: 11114 /branches/DataPreprocessing/HeuristicLab.Problems.TravelingSalesman.Views removed
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.VehicleRouting
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Problems.VehicleRouting reverse-merged: 11114 /branches/DataPreprocessing/HeuristicLab.Problems.VehicleRouting removed
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.VehicleRouting.Views
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Problems.VehicleRouting.Views reverse-merged: 11114 /branches/DataPreprocessing/HeuristicLab.Problems.VehicleRouting.Views removed
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Tests
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Tests reverse-merged: 11114 /branches/DataPreprocessing/HeuristicLab.Tests removed
- Property svn:mergeinfo changed
Note: See TracChangeset
for help on using the changeset viewer.