- Timestamp:
- 07/08/16 14:40:02 (8 years ago)
- Location:
- branches/crossvalidation-2434
- Files:
-
- 3 deleted
- 6 edited
- 4 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/crossvalidation-2434
- Property svn:mergeinfo changed
-
branches/crossvalidation-2434/HeuristicLab.DataPreprocessing/3.4
-
branches/crossvalidation-2434/HeuristicLab.DataPreprocessing/3.4/HeuristicLab.DataPreprocessing-3.4.csproj
r12682 r14029 78 78 </ItemGroup> 79 79 <ItemGroup> 80 <Compile Include=" Implementations\ScatterPlotContent.cs" />81 <Compile Include=" Implementations\DataCompletenessChartContent.cs" />82 <Compile Include=" Implementations\FilteredPreprocessingData.cs" />83 <Compile Include=" Implementations\ManipulationContent.cs" />84 <Compile Include=" Implementations\PreprocessingChartContent.cs" />85 <Compile Include=" Implementations\PreprocessingData.cs" />86 <Compile Include=" Implementations\PreprocessingDataTable.cs" />87 <Compile Include=" Interfaces\IViewChartShortcut.cs" />88 <Compile Include=" Interfaces\IFilteredPreprocessingData.cs" />89 <Compile Include=" Implementations\CorrelationMatrixContent.cs" />80 <Compile Include="Content\ScatterPlotContent.cs" /> 81 <Compile Include="Content\DataCompletenessChartContent.cs" /> 82 <Compile Include="Data\FilteredPreprocessingData.cs" /> 83 <Compile Include="Content\ManipulationContent.cs" /> 84 <Compile Include="Content\PreprocessingChartContent.cs" /> 85 <Compile Include="Data\PreprocessingData.cs" /> 86 <Compile Include="Content\PreprocessingDataTable.cs" /> 87 <Compile Include="Content\IViewChartShortcut.cs" /> 88 <Compile Include="Data\IFilteredPreprocessingData.cs" /> 89 <Compile Include="Content\CorrelationMatrixContent.cs" /> 90 90 <Compile Include="PreprocessingTransformator.cs" /> 91 <Compile Include="Utils\DataPreprocessingChangedEvent.cs" /> 92 <Compile Include="Implementations\Filter\ComparisonFilter.cs" /> 93 <Compile Include="Implementations\Filter\IFilter.cs" /> 94 <Compile Include="Implementations\ManipulationLogic.cs" /> 95 <Compile Include="Interfaces\IPreprocessingData.cs" /> 96 <Compile Include="Interfaces\IDataGridLogic.cs" /> 97 <Compile Include="Implementations\FilterContent.cs" /> 98 <Compile Include="Implementations\FilterLogic.cs" /> 99 <Compile Include="Implementations\HistogramContent.cs" /> 100 <Compile Include="Implementations\LineChartContent.cs" /> 101 <Compile Include="Implementations\StatisticsContent.cs" /> 102 <Compile Include="Implementations\TransformationContent.cs" /> 103 <Compile Include="Interfaces\IFilterLogic.cs" /> 104 <Compile Include="Interfaces\IManipulationLogic.cs" /> 105 <Compile Include="Interfaces\ITransformationLogic.cs" /> 106 <Compile Include="Interfaces\IViewShortcut.cs" /> 91 <Compile Include="Data\DataPreprocessingChangedEvent.cs" /> 92 <Compile Include="Logic\Filter\ComparisonFilter.cs" /> 93 <Compile Include="Logic\Filter\IFilter.cs" /> 94 <Compile Include="Logic\ManipulationLogic.cs" /> 95 <Compile Include="Data\IPreprocessingData.cs" /> 96 <Compile Include="Content\FilterContent.cs" /> 97 <Compile Include="Logic\FilterLogic.cs" /> 98 <Compile Include="Content\HistogramContent.cs" /> 99 <Compile Include="Content\LineChartContent.cs" /> 100 <Compile Include="Content\StatisticsContent.cs" /> 101 <Compile Include="Content\TransformationContent.cs" /> 102 <Compile Include="Content\IViewShortcut.cs" /> 107 103 <Compile Include="ProblemDataCreator.cs" /> 108 104 <None Include="Plugin.cs.frame" /> 109 <Compile Include="Implementations\DataGridContent.cs" /> 110 <Compile Include="Implementations\PreprocessingContext.cs" /> 111 <Compile Include="Implementations\TransactionalPreprocessingData.cs" /> 112 <Compile Include="Implementations\SearchLogic.cs" /> 113 <Compile Include="Implementations\StatisticsLogic.cs" /> 114 <Compile Include="Interfaces\IDataGridContent.cs" /> 115 <Compile Include="Interfaces\IPreprocessingContext.cs" /> 116 <Compile Include="Interfaces\ISearchLogic.cs" /> 117 <Compile Include="Interfaces\IStatisticsLogic.cs" /> 118 <Compile Include="Interfaces\ITransactionalPreprocessingData.cs" /> 105 <Compile Include="Content\DataGridContent.cs" /> 106 <Compile Include="PreprocessingContext.cs" /> 107 <Compile Include="Data\TransactionalPreprocessingData.cs" /> 108 <Compile Include="Logic\SearchLogic.cs" /> 109 <Compile Include="Logic\StatisticsLogic.cs" /> 110 <Compile Include="Data\ITransactionalPreprocessingData.cs" /> 119 111 <Compile Include="Plugin.cs" /> 120 112 <Compile Include="Properties\AssemblyInfo.cs" /> … … 160 152 <Private>False</Private> 161 153 </ProjectReference> 154 <ProjectReference Include="..\..\HeuristicLab.Persistence\3.3\HeuristicLab.Persistence-3.3.csproj"> 155 <Project>{102BC7D3-0EF9-439C-8F6D-96FF0FDB8E1B}</Project> 156 <Name>HeuristicLab.Persistence-3.3</Name> 157 <Private>False</Private> 158 </ProjectReference> 162 159 <ProjectReference Include="..\..\HeuristicLab.PluginInfrastructure\3.3\HeuristicLab.PluginInfrastructure-3.3.csproj"> 163 160 <Project>{94186a6a-5176-4402-ae83-886557b53cca}</Project> -
branches/crossvalidation-2434/HeuristicLab.DataPreprocessing/3.4/Plugin.cs.frame
r12753 r14029 26 26 /// Plugin class for HeuristicLab.Data plugin. 27 27 /// </summary> 28 [Plugin("HeuristicLab.DataPreprocessing", "3.4. 2.$WCREV$")]28 [Plugin("HeuristicLab.DataPreprocessing", "3.4.3.$WCREV$")] 29 29 [PluginFile("HeuristicLab.DataPreprocessing-3.4.dll", PluginFileType.Assembly)] 30 30 [PluginDependency("HeuristicLab.Analysis", "3.3")] … … 35 35 [PluginDependency("HeuristicLab.Data","3.3")] 36 36 [PluginDependency("HeuristicLab.Optimization", "3.3")] 37 [PluginDependency("HeuristicLab.Persistence", "3.3")] 37 38 [PluginDependency("HeuristicLab.Problems.DataAnalysis","3.4")] 38 39 public class HeuristicLabDataPreprocessingPlugin : PluginBase { -
branches/crossvalidation-2434/HeuristicLab.DataPreprocessing/3.4/ProblemDataCreator.cs
r12676 r14029 29 29 public class ProblemDataCreator { 30 30 31 private readonly IPreprocessingContext context;31 private readonly PreprocessingContext context; 32 32 33 33 private Dataset ExportedDataset { … … 39 39 private IList<ITransformation> Transformations { get { return context.Data.Transformations; } } 40 40 41 public ProblemDataCreator( IPreprocessingContext context) {41 public ProblemDataCreator(PreprocessingContext context) { 42 42 this.context = context; 43 43 } 44 44 45 public IDataAnalysisProblemData CreateProblemData( ) {45 public IDataAnalysisProblemData CreateProblemData(IDataAnalysisProblemData oldProblemData) { 46 46 if (context.Data.Rows == 0 || context.Data.Columns == 0) return null; 47 47 48 var oldProblemData = context.ProblemData;49 48 IDataAnalysisProblemData problemData; 50 49 51 if (oldProblemData is RegressionProblemData) { 50 if (oldProblemData is TimeSeriesPrognosisProblemData) { 51 problemData = CreateTimeSeriesPrognosisData((TimeSeriesPrognosisProblemData)oldProblemData); 52 } else if (oldProblemData is RegressionProblemData) { 52 53 problemData = CreateRegressionData((RegressionProblemData)oldProblemData); 53 54 } else if (oldProblemData is ClassificationProblemData) { … … 63 64 var inputVariables = oldProblemData.InputVariables.ToDictionary(x => x.Value, x => x); 64 65 foreach (var variable in problemData.InputVariables) { 65 bool isChecked = oldProblemData.InputVariables.ItemChecked(inputVariables[variable.Value]);66 bool isChecked = inputVariables.ContainsKey(variable.Value) && oldProblemData.InputVariables.ItemChecked(inputVariables[variable.Value]); 66 67 problemData.InputVariables.SetItemCheckedState(variable, isChecked); 67 68 } … … 70 71 } 71 72 73 private IDataAnalysisProblemData CreateTimeSeriesPrognosisData(TimeSeriesPrognosisProblemData oldProblemData) { 74 var targetVariable = oldProblemData.TargetVariable; 75 if (!context.Data.VariableNames.Contains(targetVariable)) 76 targetVariable = context.Data.VariableNames.First(); 77 var inputVariables = GetDoubleInputVariables(targetVariable); 78 var newProblemData = new TimeSeriesPrognosisProblemData(ExportedDataset, inputVariables, targetVariable, Transformations) { 79 TrainingHorizon = oldProblemData.TrainingHorizon, 80 TestHorizon = oldProblemData.TestHorizon 81 }; 82 return newProblemData; 83 } 84 72 85 private IDataAnalysisProblemData CreateRegressionData(RegressionProblemData oldProblemData) { 73 86 var targetVariable = oldProblemData.TargetVariable; 74 // target variable must be double and must exist in the new dataset 75 return new RegressionProblemData(ExportedDataset, GetDoubleInputVariables(targetVariable), targetVariable, Transformations); 87 if (!context.Data.VariableNames.Contains(targetVariable)) 88 targetVariable = context.Data.VariableNames.First(); 89 var inputVariables = GetDoubleInputVariables(targetVariable); 90 var newProblemData = new RegressionProblemData(ExportedDataset, inputVariables, targetVariable, Transformations); 91 return newProblemData; 76 92 } 77 93 78 94 private IDataAnalysisProblemData CreateClassificationData(ClassificationProblemData oldProblemData) { 79 // target variable must be double and must exist in the new dataset80 95 var targetVariable = oldProblemData.TargetVariable; 81 var newProblemData = new ClassificationProblemData(ExportedDataset, GetDoubleInputVariables(targetVariable), targetVariable, Transformations); 82 newProblemData.PositiveClass = oldProblemData.PositiveClass; 96 if (!context.Data.VariableNames.Contains(targetVariable)) 97 targetVariable = context.Data.VariableNames.First(); 98 var inputVariables = GetDoubleInputVariables(targetVariable); 99 var newProblemData = new ClassificationProblemData(ExportedDataset, inputVariables, targetVariable, Transformations) { 100 PositiveClass = oldProblemData.PositiveClass 101 }; 83 102 return newProblemData; 84 103 } -
branches/crossvalidation-2434/HeuristicLab.DataPreprocessing/3.4/Properties/AssemblyInfo.cs.frame
r12753 r14029 54 54 // by using the '*' as shown below: 55 55 [assembly: AssemblyVersion("3.4.0.0")] 56 [assembly: AssemblyFileVersion("3.4. 2.$WCREV$")]56 [assembly: AssemblyFileVersion("3.4.3.$WCREV$")]
Note: See TracChangeset
for help on using the changeset viewer.