Changeset 15885
- Timestamp:
- 04/06/18 11:35:10 (7 years ago)
- Location:
- branches/2906_Transformations
- Files:
-
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2906_Transformations/HeuristicLab.DataPreprocessing.Views/3.4/TransformationListView.cs
r15879 r15885 104 104 int selectedIndex = itemsListView.SelectedIndices[0]; 105 105 106 // TODO: do not move/remove already applied transformations 107 // TODO: general disallow of movement? 106 // TODO: do not move/remove already applied transformations or disallow of movement generally? 108 107 if (Content[selectedIndex].IsApplied) { 109 108 moveUpButton.Enabled = selectedIndex > 0 && Content[selectedIndex - 1].IsApplied; -
branches/2906_Transformations/HeuristicLab.DataPreprocessing/3.4/Data/PreprocessingData.cs
r15865 r15885 414 414 } 415 415 416 // TODO: set fixed constrained (allowed) values417 416 foreach (var trans in problemData.Transformations) { 418 417 var newTrans = new PreprocessingTransformation(variableNames.Select(x => new StringValue(x))) { -
branches/2906_Transformations/HeuristicLab.DataPreprocessing/3.4/HeuristicLab.DataPreprocessing-3.4.csproj
r15865 r15885 110 110 <SpecificVersion>False</SpecificVersion> 111 111 <HintPath>..\..\..\..\trunk\bin\HeuristicLab.Parameters-3.3.dll</HintPath> 112 <Private>False</Private> 112 113 </Reference> 113 114 <Reference Include="HeuristicLab.Persistence-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> -
branches/2906_Transformations/HeuristicLab.DataPreprocessing/3.4/ProblemDataCreator.cs
r15884 r15885 75 75 76 76 private IDataAnalysisProblemData CreateRegressionData(RegressionProblemData oldProblemData) { 77 var targetVariable = DataAnalysisTransformation.Get LastTransitiveVariable(oldProblemData.TargetVariable, CreateDataAnalysisTransformation());77 var targetVariable = DataAnalysisTransformation.GetStrictTransitiveVariables(oldProblemData.TargetVariable, CreateDataAnalysisTransformation(), false).Last(); 78 78 if (!context.Data.VariableNames.Contains(targetVariable)) 79 79 targetVariable = context.Data.VariableNames.First(); -
branches/2906_Transformations/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression.Views/3.4/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression.Views-3.4.csproj
r15863 r15885 102 102 <SpecificVersion>False</SpecificVersion> 103 103 <HintPath>..\..\..\..\trunk\bin\HeuristicLab.Algorithms.DataAnalysis-3.4.dll</HintPath> 104 </Reference> 105 <Reference Include="HeuristicLab.Collections-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec" /> 104 <Private>False</Private> 105 </Reference> 106 <Reference Include="HeuristicLab.Collections-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 107 <SpecificVersion>False</SpecificVersion> 108 <Private>False</Private> 109 </Reference> 106 110 <Reference Include="HeuristicLab.Common-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 107 111 <SpecificVersion>False</SpecificVersion> 108 112 <HintPath>..\..\..\..\trunk\bin\HeuristicLab.Common-3.3.dll</HintPath> 113 <Private>False</Private> 109 114 </Reference> 110 115 <Reference Include="HeuristicLab.Common.Resources-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 111 116 <SpecificVersion>False</SpecificVersion> 112 117 <HintPath>..\..\..\..\trunk\bin\HeuristicLab.Common.Resources-3.3.dll</HintPath> 113 </Reference> 114 <Reference Include="HeuristicLab.Core-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec" /> 115 <Reference Include="HeuristicLab.Core.Views-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec" /> 116 <Reference Include="HeuristicLab.Data-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec" /> 118 <Private>False</Private> 119 </Reference> 120 <Reference Include="HeuristicLab.Core-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 121 <SpecificVersion>False</SpecificVersion> 122 <Private>False</Private> 123 </Reference> 124 <Reference Include="HeuristicLab.Core.Views-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 125 <SpecificVersion>False</SpecificVersion> 126 <Private>False</Private> 127 </Reference> 128 <Reference Include="HeuristicLab.Data-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 129 <SpecificVersion>False</SpecificVersion> 130 <Private>False</Private> 131 </Reference> 117 132 <Reference Include="HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4, Version=3.4.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 118 133 <SpecificVersion>False</SpecificVersion> 119 134 <HintPath>..\..\..\..\trunk\bin\HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4.dll</HintPath> 135 <Private>False</Private> 120 136 </Reference> 121 137 <Reference Include="HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views-3.4, Version=3.4.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 122 138 <SpecificVersion>False</SpecificVersion> 123 139 <HintPath>..\..\..\..\trunk\bin\HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views-3.4.dll</HintPath> 140 <Private>False</Private> 124 141 </Reference> 125 142 <Reference Include="HeuristicLab.MainForm-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 126 143 <SpecificVersion>False</SpecificVersion> 127 144 <HintPath>..\..\..\..\trunk\bin\HeuristicLab.MainForm-3.3.dll</HintPath> 128 </Reference> 129 <Reference Include="HeuristicLab.MainForm.WindowsForms-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec" /> 130 <Reference Include="HeuristicLab.Operators-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec" /> 145 <Private>False</Private> 146 </Reference> 147 <Reference Include="HeuristicLab.MainForm.WindowsForms-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 148 <SpecificVersion>False</SpecificVersion> 149 <Private>False</Private> 150 </Reference> 151 <Reference Include="HeuristicLab.Operators-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 152 <SpecificVersion>False</SpecificVersion> 153 <Private>False</Private> 154 </Reference> 131 155 <Reference Include="HeuristicLab.Optimization-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 132 156 <SpecificVersion>False</SpecificVersion> 133 157 <HintPath>..\..\..\..\trunk\bin\HeuristicLab.Optimization-3.3.dll</HintPath> 158 <Private>False</Private> 134 159 </Reference> 135 160 <Reference Include="HeuristicLab.Optimization.Views-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 136 161 <SpecificVersion>False</SpecificVersion> 137 162 <HintPath>..\..\..\..\trunk\bin\HeuristicLab.Optimization.Views-3.3.dll</HintPath> 163 <Private>False</Private> 138 164 </Reference> 139 165 <Reference Include="HeuristicLab.Parameters.Views-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 140 166 <SpecificVersion>False</SpecificVersion> 141 167 <HintPath>..\..\..\..\trunk\bin\HeuristicLab.Parameters.Views-3.3.dll</HintPath> 168 <Private>False</Private> 142 169 </Reference> 143 170 <Reference Include="HeuristicLab.Persistence-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 144 171 <SpecificVersion>False</SpecificVersion> 145 172 <HintPath>..\..\..\..\trunk\bin\HeuristicLab.Persistence-3.3.dll</HintPath> 173 <Private>False</Private> 146 174 </Reference> 147 175 <Reference Include="HeuristicLab.PluginInfrastructure-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 148 176 <SpecificVersion>False</SpecificVersion> 149 177 <HintPath>..\..\..\..\trunk\bin\HeuristicLab.PluginInfrastructure-3.3.dll</HintPath> 150 </Reference> 151 <Reference Include="HeuristicLab.Visualization.ChartControlsExtensions-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec" /> 178 <Private>False</Private> 179 </Reference> 180 <Reference Include="HeuristicLab.Visualization.ChartControlsExtensions-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 181 <SpecificVersion>False</SpecificVersion> 182 <Private>False</Private> 183 </Reference> 152 184 <Reference Include="System" /> 153 185 <Reference Include="System.Core"> … … 230 262 <Project>{5AC82412-911B-4FA2-A013-EDC5E3F3FCC2}</Project> 231 263 <Name>HeuristicLab.Problems.DataAnalysis.Symbolic.Regression-3.4</Name> 264 <Private>False</Private> 232 265 </ProjectReference> 233 266 <ProjectReference Include="..\..\HeuristicLab.Problems.DataAnalysis.Symbolic.Views\3.4\HeuristicLab.Problems.DataAnalysis.Symbolic.Views-3.4.csproj"> 234 267 <Project>{7A2531CE-3F7C-4F13-BCCA-ED6DC27A7086}</Project> 235 268 <Name>HeuristicLab.Problems.DataAnalysis.Symbolic.Views-3.4</Name> 269 <Private>False</Private> 236 270 </ProjectReference> 237 271 <ProjectReference Include="..\..\HeuristicLab.Problems.DataAnalysis.Symbolic\3.4\HeuristicLab.Problems.DataAnalysis.Symbolic-3.4.csproj"> 238 272 <Project>{3D28463F-EC96-4D82-AFEE-38BE91A0CA00}</Project> 239 273 <Name>HeuristicLab.Problems.DataAnalysis.Symbolic-3.4</Name> 274 <Private>False</Private> 240 275 </ProjectReference> 241 276 <ProjectReference Include="..\..\HeuristicLab.Problems.DataAnalysis.Views\3.4\HeuristicLab.Problems.DataAnalysis.Views-3.4.csproj"> 242 277 <Project>{3E9E8944-44FF-40BB-A622-3A4A7DD0F198}</Project> 243 278 <Name>HeuristicLab.Problems.DataAnalysis.Views-3.4</Name> 279 <Private>False</Private> 244 280 </ProjectReference> 245 281 <ProjectReference Include="..\..\HeuristicLab.Problems.DataAnalysis\3.4\HeuristicLab.Problems.DataAnalysis-3.4.csproj"> 246 282 <Project>{DF87C13E-A889-46FF-8153-66DCAA8C5674}</Project> 247 283 <Name>HeuristicLab.Problems.DataAnalysis-3.4</Name> 284 <Private>False</Private> 248 285 </ProjectReference> 249 286 </ItemGroup> -
branches/2906_Transformations/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression-3.4.csproj
r15863 r15885 102 102 <SpecificVersion>False</SpecificVersion> 103 103 <HintPath>..\..\..\..\trunk\bin\ALGLIB-3.7.0.dll</HintPath> 104 <Private>False</Private> 104 105 </Reference> 105 106 <Reference Include="HeuristicLab.Analysis-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 106 107 <SpecificVersion>False</SpecificVersion> 107 108 <HintPath>..\..\..\..\trunk\bin\HeuristicLab.Analysis-3.3.dll</HintPath> 108 </Reference> 109 <Reference Include="HeuristicLab.Collections-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec" /> 109 <Private>False</Private> 110 </Reference> 111 <Reference Include="HeuristicLab.Collections-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 112 <SpecificVersion>False</SpecificVersion> 113 <Private>False</Private> 114 </Reference> 110 115 <Reference Include="HeuristicLab.Common-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 111 116 <SpecificVersion>False</SpecificVersion> 112 117 <HintPath>..\..\..\..\trunk\bin\HeuristicLab.Common-3.3.dll</HintPath> 113 </Reference> 114 <Reference Include="HeuristicLab.Core-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec" /> 118 <Private>False</Private> 119 </Reference> 120 <Reference Include="HeuristicLab.Core-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 121 <SpecificVersion>False</SpecificVersion> 122 <Private>False</Private> 123 </Reference> 115 124 <Reference Include="HeuristicLab.Data-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 116 125 <SpecificVersion>False</SpecificVersion> 117 126 <HintPath>..\..\..\..\trunk\bin\HeuristicLab.Data-3.3.dll</HintPath> 127 <Private>False</Private> 118 128 </Reference> 119 129 <Reference Include="HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4, Version=3.4.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 120 130 <SpecificVersion>False</SpecificVersion> 121 131 <HintPath>..\..\..\..\trunk\bin\HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4.dll</HintPath> 122 </Reference> 123 <Reference Include="HeuristicLab.Operators-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec" /> 124 <Reference Include="HeuristicLab.Optimization-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec" /> 125 <Reference Include="HeuristicLab.Optimization.Operators-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec" /> 132 <Private>False</Private> 133 </Reference> 134 <Reference Include="HeuristicLab.Operators-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 135 <SpecificVersion>False</SpecificVersion> 136 <Private>False</Private> 137 </Reference> 138 <Reference Include="HeuristicLab.Optimization-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 139 <SpecificVersion>False</SpecificVersion> 140 <Private>False</Private> 141 </Reference> 142 <Reference Include="HeuristicLab.Optimization.Operators-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 143 <SpecificVersion>False</SpecificVersion> 144 <Private>False</Private> 145 </Reference> 126 146 <Reference Include="HeuristicLab.Parameters-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 127 147 <SpecificVersion>False</SpecificVersion> 128 148 <HintPath>..\..\..\..\trunk\bin\HeuristicLab.Parameters-3.3.dll</HintPath> 149 <Private>False</Private> 129 150 </Reference> 130 151 <Reference Include="HeuristicLab.Persistence-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 131 152 <SpecificVersion>False</SpecificVersion> 132 153 <HintPath>..\..\..\..\trunk\bin\HeuristicLab.Persistence-3.3.dll</HintPath> 154 <Private>False</Private> 133 155 </Reference> 134 156 <Reference Include="HeuristicLab.PluginInfrastructure-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 135 157 <SpecificVersion>False</SpecificVersion> 136 158 <HintPath>..\..\..\..\trunk\bin\HeuristicLab.PluginInfrastructure-3.3.dll</HintPath> 137 </Reference> 138 <Reference Include="HeuristicLab.Problems.Instances-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec" /> 159 <Private>False</Private> 160 </Reference> 161 <Reference Include="HeuristicLab.Problems.Instances-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 162 <SpecificVersion>False</SpecificVersion> 163 <Private>False</Private> 164 </Reference> 139 165 <Reference Include="System" /> 140 166 <Reference Include="System.Core"> … … 215 241 <Project>{3D28463F-EC96-4D82-AFEE-38BE91A0CA00}</Project> 216 242 <Name>HeuristicLab.Problems.DataAnalysis.Symbolic-3.4</Name> 243 <Private>False</Private> 217 244 </ProjectReference> 218 245 <ProjectReference Include="..\..\HeuristicLab.Problems.DataAnalysis\3.4\HeuristicLab.Problems.DataAnalysis-3.4.csproj"> 219 246 <Project>{DF87C13E-A889-46FF-8153-66DCAA8C5674}</Project> 220 247 <Name>HeuristicLab.Problems.DataAnalysis-3.4</Name> 248 <Private>False</Private> 221 249 </ProjectReference> 222 250 </ItemGroup> -
branches/2906_Transformations/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/HeuristicLab.Problems.DataAnalysis.Symbolic.Views-3.4.csproj
r15863 r15885 102 102 <SpecificVersion>False</SpecificVersion> 103 103 <HintPath>..\..\..\..\trunk\bin\ALGLIB-3.7.0.dll</HintPath> 104 <Private>False</Private> 104 105 </Reference> 105 106 <Reference Include="EPPlus-4.0.3, Version=4.0.3.0, Culture=neutral, PublicKeyToken=ea159fdaa78159a1, processorArchitecture=MSIL"> 106 107 <SpecificVersion>False</SpecificVersion> 107 108 <HintPath>..\..\..\..\trunk\bin\EPPlus-4.0.3.dll</HintPath> 108 </Reference> 109 <Reference Include="HeuristicLab.Collections-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec" /> 110 <Reference Include="HeuristicLab.Common-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec" /> 109 <Private>False</Private> 110 </Reference> 111 <Reference Include="HeuristicLab.Collections-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 112 <SpecificVersion>False</SpecificVersion> 113 <Private>False</Private> 114 </Reference> 115 <Reference Include="HeuristicLab.Common-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 116 <SpecificVersion>False</SpecificVersion> 117 <Private>False</Private> 118 </Reference> 111 119 <Reference Include="HeuristicLab.Common.Resources-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 112 120 <SpecificVersion>False</SpecificVersion> 113 121 <HintPath>..\..\..\..\trunk\bin\HeuristicLab.Common.Resources-3.3.dll</HintPath> 114 </Reference> 115 <Reference Include="HeuristicLab.Core-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec" /> 122 <Private>False</Private> 123 </Reference> 124 <Reference Include="HeuristicLab.Core-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 125 <SpecificVersion>False</SpecificVersion> 126 <Private>False</Private> 127 </Reference> 116 128 <Reference Include="HeuristicLab.Core.Views-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 117 129 <SpecificVersion>False</SpecificVersion> 118 130 <HintPath>..\..\..\..\trunk\bin\HeuristicLab.Core.Views-3.3.dll</HintPath> 119 </Reference> 120 <Reference Include="HeuristicLab.Data-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec" /> 131 <Private>False</Private> 132 </Reference> 133 <Reference Include="HeuristicLab.Data-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 134 <SpecificVersion>False</SpecificVersion> 135 <Private>False</Private> 136 </Reference> 121 137 <Reference Include="HeuristicLab.Data.Views-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 122 138 <SpecificVersion>False</SpecificVersion> 123 139 <HintPath>..\..\..\..\trunk\bin\HeuristicLab.Data.Views-3.3.dll</HintPath> 140 <Private>False</Private> 124 141 </Reference> 125 142 <Reference Include="HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4, Version=3.4.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 126 143 <SpecificVersion>False</SpecificVersion> 127 144 <HintPath>..\..\..\..\trunk\bin\HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4.dll</HintPath> 145 <Private>False</Private> 128 146 </Reference> 129 147 <Reference Include="HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views-3.4, Version=3.4.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 130 148 <SpecificVersion>False</SpecificVersion> 131 149 <HintPath>..\..\..\..\trunk\bin\HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views-3.4.dll</HintPath> 150 <Private>False</Private> 132 151 </Reference> 133 152 <Reference Include="HeuristicLab.MainForm-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 134 153 <SpecificVersion>False</SpecificVersion> 135 154 <HintPath>..\..\..\..\trunk\bin\HeuristicLab.MainForm-3.3.dll</HintPath> 155 <Private>False</Private> 136 156 </Reference> 137 157 <Reference Include="HeuristicLab.MainForm.WindowsForms-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 138 158 <SpecificVersion>False</SpecificVersion> 139 159 <HintPath>..\..\..\..\trunk\bin\HeuristicLab.MainForm.WindowsForms-3.3.dll</HintPath> 160 <Private>False</Private> 140 161 </Reference> 141 162 <Reference Include="HeuristicLab.Optimization-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 142 163 <SpecificVersion>False</SpecificVersion> 143 164 <HintPath>..\..\..\..\trunk\bin\HeuristicLab.Optimization-3.3.dll</HintPath> 165 <Private>False</Private> 144 166 </Reference> 145 167 <Reference Include="HeuristicLab.PluginInfrastructure-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 146 168 <SpecificVersion>False</SpecificVersion> 147 169 <HintPath>..\..\..\..\trunk\bin\HeuristicLab.PluginInfrastructure-3.3.dll</HintPath> 170 <Private>False</Private> 148 171 </Reference> 149 172 <Reference Include="System" /> … … 272 295 <Project>{3d28463f-ec96-4d82-afee-38be91a0ca00}</Project> 273 296 <Name>HeuristicLab.Problems.DataAnalysis.Symbolic-3.4</Name> 297 <Private>False</Private> 274 298 </ProjectReference> 275 299 <ProjectReference Include="..\..\HeuristicLab.Problems.DataAnalysis\3.4\HeuristicLab.Problems.DataAnalysis-3.4.csproj"> 276 300 <Project>{DF87C13E-A889-46FF-8153-66DCAA8C5674}</Project> 277 301 <Name>HeuristicLab.Problems.DataAnalysis-3.4</Name> 302 <Private>False</Private> 278 303 </ProjectReference> 279 304 </ItemGroup> -
branches/2906_Transformations/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Formatters/SymbolicDataAnalysisExpressionLatexFormatter.cs
r15583 r15885 487 487 488 488 private void FormatStartSymbol(StringBuilder strBuilder) { 489 strBuilder.Append( targetVariable ?? "target_" + (targetCount++));489 strBuilder.Append(EscapeLatexString(targetVariable) ?? "target_{" + (targetCount++) + "}"); 490 490 if (containsTimeSeriesSymbol) 491 491 strBuilder.Append("(t)"); -
branches/2906_Transformations/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/HeuristicLab.Problems.DataAnalysis.Symbolic-3.4.csproj
r15864 r15885 102 102 <SpecificVersion>False</SpecificVersion> 103 103 <HintPath>..\..\..\..\trunk\bin\ALGLIB-3.7.0.dll</HintPath> 104 <Private>False</Private> 104 105 </Reference> 105 106 <Reference Include="AutoDiff-1.0, Version=1.0.0.14388, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 106 107 <SpecificVersion>False</SpecificVersion> 107 108 <HintPath>..\..\..\..\trunk\bin\AutoDiff-1.0.dll</HintPath> 109 <Private>False</Private> 108 110 </Reference> 109 111 <Reference Include="HeuristicLab.Analysis-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 110 112 <SpecificVersion>False</SpecificVersion> 111 113 <HintPath>..\..\..\..\trunk\bin\HeuristicLab.Analysis-3.3.dll</HintPath> 112 </Reference> 113 <Reference Include="HeuristicLab.Collections-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec" /> 114 <Private>False</Private> 115 </Reference> 116 <Reference Include="HeuristicLab.Collections-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 117 <SpecificVersion>False</SpecificVersion> 118 <Private>False</Private> 119 </Reference> 114 120 <Reference Include="HeuristicLab.Common-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 115 121 <SpecificVersion>False</SpecificVersion> 116 122 <HintPath>..\..\..\..\trunk\bin\HeuristicLab.Common-3.3.dll</HintPath> 123 <Private>False</Private> 117 124 </Reference> 118 125 <Reference Include="HeuristicLab.Common.Resources-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 119 126 <SpecificVersion>False</SpecificVersion> 120 127 <HintPath>..\..\..\..\trunk\bin\HeuristicLab.Common.Resources-3.3.dll</HintPath> 128 <Private>False</Private> 121 129 </Reference> 122 130 <Reference Include="HeuristicLab.Core-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 123 131 <SpecificVersion>False</SpecificVersion> 124 132 <HintPath>..\..\..\..\trunk\bin\HeuristicLab.Core-3.3.dll</HintPath> 133 <Private>False</Private> 125 134 </Reference> 126 135 <Reference Include="HeuristicLab.Data-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 127 136 <SpecificVersion>False</SpecificVersion> 128 137 <HintPath>..\..\..\..\trunk\bin\HeuristicLab.Data-3.3.dll</HintPath> 138 <Private>False</Private> 129 139 </Reference> 130 140 <Reference Include="HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4, Version=3.4.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 131 141 <SpecificVersion>False</SpecificVersion> 132 142 <HintPath>..\..\..\..\trunk\bin\HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4.dll</HintPath> 143 <Private>False</Private> 133 144 </Reference> 134 145 <Reference Include="HeuristicLab.Operators-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 135 146 <SpecificVersion>False</SpecificVersion> 136 147 <HintPath>..\..\..\..\trunk\bin\HeuristicLab.Operators-3.3.dll</HintPath> 148 <Private>False</Private> 137 149 </Reference> 138 150 <Reference Include="HeuristicLab.Optimization-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 139 151 <SpecificVersion>False</SpecificVersion> 140 152 <HintPath>..\..\..\..\trunk\bin\HeuristicLab.Optimization-3.3.dll</HintPath> 153 <Private>False</Private> 141 154 </Reference> 142 155 <Reference Include="HeuristicLab.Optimization.Operators-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 143 156 <SpecificVersion>False</SpecificVersion> 144 157 <HintPath>..\..\..\..\trunk\bin\HeuristicLab.Optimization.Operators-3.3.dll</HintPath> 158 <Private>False</Private> 145 159 </Reference> 146 160 <Reference Include="HeuristicLab.Parameters-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 147 161 <SpecificVersion>False</SpecificVersion> 148 162 <HintPath>..\..\..\..\trunk\bin\HeuristicLab.Parameters-3.3.dll</HintPath> 163 <Private>False</Private> 149 164 </Reference> 150 165 <Reference Include="HeuristicLab.Persistence-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 151 166 <SpecificVersion>False</SpecificVersion> 152 167 <HintPath>..\..\..\..\trunk\bin\HeuristicLab.Persistence-3.3.dll</HintPath> 168 <Private>False</Private> 153 169 </Reference> 154 170 <Reference Include="HeuristicLab.PluginInfrastructure-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 155 171 <SpecificVersion>False</SpecificVersion> 156 172 <HintPath>..\..\..\..\trunk\bin\HeuristicLab.PluginInfrastructure-3.3.dll</HintPath> 173 <Private>False</Private> 157 174 </Reference> 158 175 <Reference Include="HeuristicLab.Problems.Instances-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 159 176 <SpecificVersion>False</SpecificVersion> 160 177 <HintPath>..\..\..\..\trunk\bin\HeuristicLab.Problems.Instances-3.3.dll</HintPath> 178 <Private>False</Private> 161 179 </Reference> 162 180 <Reference Include="HeuristicLab.Random-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 163 181 <SpecificVersion>False</SpecificVersion> 164 182 <HintPath>..\..\..\..\trunk\bin\HeuristicLab.Random-3.3.dll</HintPath> 183 <Private>False</Private> 165 184 </Reference> 166 185 <Reference Include="System" /> … … 355 374 <Project>{df87c13e-a889-46ff-8153-66dcaa8c5674}</Project> 356 375 <Name>HeuristicLab.Problems.DataAnalysis-3.4</Name> 376 <Private>False</Private> 357 377 </ProjectReference> 358 378 </ItemGroup> -
branches/2906_Transformations/HeuristicLab.Problems.DataAnalysis.Views/3.4/HeuristicLab.Problems.DataAnalysis.Views-3.4.csproj
r15870 r15885 182 182 <Private>False</Private> 183 183 </Reference> 184 <Reference Include="HeuristicLab.Problems.DataAnalysis.Symbolic-3.4, Version=3.4.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL">185 <SpecificVersion>False</SpecificVersion>186 <HintPath>..\..\..\..\trunk\bin\HeuristicLab.Problems.DataAnalysis.Symbolic-3.4.dll</HintPath>187 <Private>False</Private>188 </Reference>189 <Reference Include="HeuristicLab.Problems.DataAnalysis.Symbolic.Regression-3.4, Version=3.4.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL">190 <SpecificVersion>False</SpecificVersion>191 <HintPath>..\..\..\..\trunk\bin\HeuristicLab.Problems.DataAnalysis.Symbolic.Regression-3.4.dll</HintPath>192 <Private>False</Private>193 </Reference>194 184 <Reference Include="HeuristicLab.Visualization.ChartControlsExtensions-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 195 185 <SpecificVersion>False</SpecificVersion> … … 594 584 </ItemGroup> 595 585 <ItemGroup> 586 <ProjectReference Include="..\..\HeuristicLab.Problems.DataAnalysis.Symbolic.Regression\3.4\HeuristicLab.Problems.DataAnalysis.Symbolic.Regression-3.4.csproj"> 587 <Project>{5AC82412-911B-4FA2-A013-EDC5E3F3FCC2}</Project> 588 <Name>HeuristicLab.Problems.DataAnalysis.Symbolic.Regression-3.4</Name> 589 <Private>False</Private> 590 </ProjectReference> 591 <ProjectReference Include="..\..\HeuristicLab.Problems.DataAnalysis.Symbolic\3.4\HeuristicLab.Problems.DataAnalysis.Symbolic-3.4.csproj"> 592 <Project>{3D28463F-EC96-4D82-AFEE-38BE91A0CA00}</Project> 593 <Name>HeuristicLab.Problems.DataAnalysis.Symbolic-3.4</Name> 594 <Private>False</Private> 595 </ProjectReference> 596 596 <ProjectReference Include="..\..\HeuristicLab.Problems.DataAnalysis\3.4\HeuristicLab.Problems.DataAnalysis-3.4.csproj"> 597 597 <Project>{df87c13e-a889-46ff-8153-66dcaa8c5674}</Project> -
branches/2906_Transformations/HeuristicLab.Problems.DataAnalysis/3.4/Dataset.cs
r15769 r15885 142 142 } 143 143 144 p rotectedDataset(Dataset dataset) : this(dataset.variableNames, dataset.variableValues.Values) { }144 public Dataset(Dataset dataset) : this(dataset.variableNames, dataset.variableValues.Values) { } 145 145 146 146 #region Backwards compatible code, remove with 3.5 -
branches/2906_Transformations/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Classification/ClassificationProblemData.cs
r15846 r15885 314 314 315 315 public ClassificationProblemData(IClassificationProblemData classificationProblemData) 316 : this(classificationProblemData.Dataset, classificationProblemData.AllowedInputVariables, classificationProblemData.TargetVariable ) {316 : this(classificationProblemData.Dataset, classificationProblemData.AllowedInputVariables, classificationProblemData.TargetVariable, classificationProblemData.Transformations) { 317 317 TrainingPartition.Start = classificationProblemData.TrainingPartition.Start; 318 318 TrainingPartition.End = classificationProblemData.TrainingPartition.End; -
branches/2906_Transformations/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Classification/ClassificationTransformationModel.cs
r15884 r15885 38 38 public ClassificationTransformationModel(IClassificationModel originalModel, IEnumerable<IDataAnalysisTransformation> transformations) 39 39 : base(originalModel, transformations) { 40 if ( DataAnalysisTransformation.GetTransitiveVariables(new[] { originalModel.TargetVariable }, transformations).Any())40 if (transformations.Any(t => t.TransformedVariable == originalModel.TargetVariable)) 41 41 throw new NotSupportedException("Classification with a transformed target variable is not allowed"); 42 42 } -
branches/2906_Transformations/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Clustering/ClusteringProblemData.cs
r15846 r15885 87 87 } 88 88 89 public ClusteringProblemData( Dataset dataset, IEnumerable<string> allowedInputVariables, IEnumerable<IDataAnalysisTransformation> transformations = null)89 public ClusteringProblemData(IDataset dataset, IEnumerable<string> allowedInputVariables, IEnumerable<IDataAnalysisTransformation> transformations = null) 90 90 : base(dataset, allowedInputVariables, transformations ?? Enumerable.Empty<IDataAnalysisTransformation>()) { 91 91 } -
branches/2906_Transformations/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/DataAnalysisTransformation.cs
r15884 r15885 66 66 Parameters.Add(new FixedValueParameter<StringValue>("Original Variable", new StringValue(originalVariable).AsReadOnly())); 67 67 Parameters.Add(new FixedValueParameter<StringValue>("Transformed Variable", new StringValue(transformedVariable).AsReadOnly())); 68 Parameters.Add(new ValueParameter<ITransformation>("Transformation", transformation)); // TODO: should be readonly/fixed 68 Parameters.Add(new ValueParameter<ITransformation>("Transformation", transformation)); // TODO: should be readonly/fixed; alternatively lock in view 69 69 } 70 70 … … 92 92 // originals => include extended 93 93 public static IEnumerable<string> ExtendVariables(IEnumerable<string> variables, IEnumerable<IDataAnalysisTransformation> transformations) { 94 return GetTransitiveVariables(variables, transformations );94 return GetTransitiveVariables(variables, transformations, inverse: false); 95 95 } 96 96 … … 98 98 public static IEnumerable<string> ReduceVariables(IEnumerable<string> variables, IEnumerable<IDataAnalysisTransformation> transformations) { 99 99 var originalVariables = new HashSet<string>(); 100 foreach (var variable in variables) 101 originalVariables.Add(GetLastTransitiveVariable(variable, transformations, inverse: true)); 100 foreach (var variable in variables) { 101 var originalVariable = GetStrictTransitiveVariables(variable, transformations, inverse: true).Last(); 102 originalVariables.Add(originalVariable); 103 } 104 102 105 return originalVariables; 103 106 } 104 107 108 // return all reachable variables 105 109 public static IEnumerable<string> GetTransitiveVariables(IEnumerable<string> variables, IEnumerable<IDataAnalysisTransformation> transformations, bool inverse = false) { 106 110 var reachableVariables = new HashSet<string>(variables); … … 116 120 } 117 121 118 public static string GetLastTransitiveVariable(string variable, IEnumerable<IDataAnalysisTransformation> transformations, bool inverse = false) { 122 // return the (unique) chain of transformations for a given variable 123 public static IEnumerable<string> GetStrictTransitiveVariables(string variable, IEnumerable<IDataAnalysisTransformation> transformations, bool inverse = false) { 124 yield return variable; 119 125 if (inverse) transformations = transformations.Reverse(); 120 126 foreach (var transformation in transformations) { 121 127 var source = inverse ? transformation.TransformedVariable : transformation.OriginalVariable; 122 128 var target = inverse ? transformation.OriginalVariable : transformation.TransformedVariable; 123 if (variable == source) 129 if (variable == source) { 124 130 variable = target; 125 }126 127 return variable;131 yield return variable; 132 } 133 } 128 134 } 129 135 #endregion … … 137 143 138 144 var originalData = modifiableDataset.GetDoubleValues(transformation.OriginalVariable); 139 //if (!trans.Check(originalData, out string errorMessage))140 // throw new InvalidOperationException($"Cannot estimate Values, Transformation is invalid: {errorMessage}");141 // TODO: check was already called before configure (in preprocessing)142 // TODO: newly specified data might not pass the check but it does not matter because the data is not configured with143 // e.g. impact calculation -> replacement=most common -> originalMean is zero144 145 145 var transformedData = trans.Apply(originalData).ToList(); 146 146 if (modifiableDataset.VariableNames.Contains(transformation.TransformedVariable)) … … 150 150 } 151 151 152 return modifiableDataset; // TODO: to regular dataset?152 return new Dataset(modifiableDataset); 153 153 } 154 154 … … 178 178 } 179 179 180 return modifiableDataset; // TODO: to regular dataset?180 return new Dataset(modifiableDataset); 181 181 } 182 182 #endregion … … 200 200 IDataAnalysisProblemData newProblemData; 201 201 if (problemData is IRegressionProblemData regressionProblemData) { 202 var newTargetVariable = GetLastTransitiveVariable(regressionProblemData.TargetVariable, problemData.Transformations, inverse); 203 newProblemData = new RegressionProblemData(dataset, inputs, newTargetVariable, problemData.Transformations); 202 var newTargetVariable = GetStrictTransitiveVariables(regressionProblemData.TargetVariable, problemData.Transformations, inverse).Last(); 203 if (problemData is ITimeSeriesPrognosisProblemData timeSeriesPrognosisProblemData) { 204 newProblemData = new TimeSeriesPrognosisProblemData(dataset, inputs, newTargetVariable, problemData.Transformations) { 205 TrainingHorizon = timeSeriesPrognosisProblemData.TrainingHorizon, 206 TestHorizon = timeSeriesPrognosisProblemData.TestHorizon, 207 }; 208 209 } else 210 newProblemData = new RegressionProblemData(dataset, inputs, newTargetVariable, problemData.Transformations); 204 211 } else if (problemData is IClassificationProblemData classificationProblemData) { 205 212 newProblemData = new ClassificationProblemData(dataset, inputs, classificationProblemData.TargetVariable, problemData.Transformations); 213 } else if (problemData is IClusteringProblemData) { 214 newProblemData = new ClusteringProblemData(dataset, inputs, problemData.Transformations); 206 215 } else throw new NotSupportedException("Type of ProblemData not supported"); 207 216 … … 216 225 217 226 #region Transform Model 218 public static IDataAnalysisTransformationModel CreateTransformationIntegratedModel(IDataAnalysisModel model, IEnumerable<IDataAnalysisTransformation> transformations) { 227 // problemdata required for type-switch. cannot differ based on model type (e.g. RF model is both regression and classification) 228 public static IDataAnalysisTransformationModel CreateTransformationIntegratedModel(IDataAnalysisModel model, IEnumerable<IDataAnalysisTransformation> transformations, IDataAnalysisProblemData problemData) { 219 229 if (model is IDataAnalysisTransformationModel) 220 230 throw new InvalidOperationException("Model already is a transformation model."); 221 231 222 switch (model) { 223 case ITimeSeriesPrognosisModel timeSeriesPrognosisModel: 224 return new TimeSeriesPrognosisTransformationModel(timeSeriesPrognosisModel, transformations); 225 case IRegressionModel regressionModel: 226 return new RegressionTransformationModel(regressionModel, transformations); 227 case IClassificationModel classificationModel: 228 return new ClassificationTransformationModel(classificationModel, transformations); 229 case IClusteringModel clusteringModel: 230 return new ClusteringTransformationModel(clusteringModel, transformations); 231 default: 232 throw new NotSupportedException("Type of the model is not supported;"); 233 } 232 if (problemData is ITimeSeriesPrognosisProblemData) 233 return new TimeSeriesPrognosisTransformationModel((ITimeSeriesPrognosisModel)model, transformations); 234 if (problemData is IRegressionProblemData) 235 return new RegressionTransformationModel((IRegressionModel)model, transformations); 236 if (problemData is IClassificationProblemData) 237 return new ClassificationTransformationModel((IClassificationModel)model, transformations); 238 if (problemData is IClusteringProblemData) 239 return new ClusteringTransformationModel((IClusteringModel)model, transformations); 240 241 throw new NotSupportedException("Type of the model is not supported;"); 234 242 } 235 243 … … 247 255 var model = solution.Model is IDataAnalysisTransformationModel // TODO: what if model is a integrated sym-reg model? 248 256 ? RestoreTrainedModel(solution.Model, transformations) 249 : CreateTransformationIntegratedModel(solution.Model, transformations );257 : CreateTransformationIntegratedModel(solution.Model, transformations, solution.ProblemData); 250 258 251 259 var data = solution.Model is IDataAnalysisTransformationModel … … 257 265 258 266 private static IDataAnalysisSolution CreateSolution(IDataAnalysisModel model, IDataAnalysisProblemData problemData) { 259 switch (model) {260 case ITimeSeriesPrognosisModel timeSeriesPrognosisModel:261 return timeSeriesPrognosisModel.CreateTimeSeriesPrognosisSolution((ITimeSeriesPrognosisProblemData)problemData);262 case IRegressionModel regressionModel:263 return regressionModel.CreateRegressionSolution((IRegressionProblemData)problemData);264 case IClassificationModel classificationModel:265 return classificationModel.CreateClassificationSolution((IClassificationProblemData)problemData);266 default:267 throw new NotSupportedException("Cannot create Solution of the model type."); 268 }267 if (problemData is ITimeSeriesPrognosisProblemData) 268 return ((ITimeSeriesPrognosisModel)model).CreateTimeSeriesPrognosisSolution((ITimeSeriesPrognosisProblemData)problemData); 269 if (problemData is IRegressionProblemData) 270 return ((IRegressionModel)model).CreateRegressionSolution((IRegressionProblemData)problemData); 271 if (problemData is IClassificationProblemData) 272 return ((IClassificationModel)model).CreateClassificationSolution((IClassificationProblemData)problemData); 273 //if (problemData is IClusteringProblemData) 274 // return ((IClusteringModel)model).CreateClusteringSolution((IClusteringProblemData)problemData); 275 276 throw new NotSupportedException("Cannot create Solution of the model type."); 269 277 } 270 278 #endregion -
branches/2906_Transformations/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Regression/RegressionTransformationModel.cs
r15884 r15885 42 42 public RegressionTransformationModel(IRegressionModel originalModel, IEnumerable<IDataAnalysisTransformation> transformations) 43 43 : base(originalModel, transformations) { 44 var transitiveTargets = DataAnalysisTransformation.GetTransitiveVariables(new[] { originalModel.TargetVariable }, transformations, inverse: true).ToList(); 45 TargetTransformations = new ItemList<IDataAnalysisTransformation>(transformations.Where(t => transitiveTargets.Contains(t.OriginalVariable))).AsReadOnly(); 46 TargetVariable = DataAnalysisTransformation.GetLastTransitiveVariable(originalModel.TargetVariable, TargetTransformations, inverse: true); 44 var learnedTarget = DataAnalysisTransformation.GetStrictTransitiveVariables(originalModel.TargetVariable, transformations, true).Last(); 45 var transitiveTargets = DataAnalysisTransformation.GetStrictTransitiveVariables(learnedTarget, transformations, inverse: false).ToList(); 46 TargetTransformations = new ItemList<IDataAnalysisTransformation>(transformations.Where(t => transitiveTargets.Contains(t.TransformedVariable))).AsReadOnly(); 47 48 TargetVariable = DataAnalysisTransformation.GetStrictTransitiveVariables(originalModel.TargetVariable, TargetTransformations, true).Last(); 47 49 } 48 50 -
branches/2906_Transformations/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/TimeSeriesPrognosis/TimeSeriesPrognosisProblemData.cs
r15846 r15885 1596 1596 1597 1597 public TimeSeriesPrognosisProblemData(ITimeSeriesPrognosisProblemData timeseriesProblemData) 1598 : this(timeseriesProblemData.Dataset, timeseriesProblemData.AllowedInputVariables, timeseriesProblemData.TargetVariable ) {1598 : this(timeseriesProblemData.Dataset, timeseriesProblemData.AllowedInputVariables, timeseriesProblemData.TargetVariable, timeseriesProblemData.Transformations) { 1599 1599 1600 1600 TrainingPartition.Start = timeseriesProblemData.TrainingPartition.Start;
Note: See TracChangeset
for help on using the changeset viewer.