Changeset 15280 for branches/Async/HeuristicLab.DataPreprocessing/3.4
- Timestamp:
- 07/23/17 00:52:14 (7 years ago)
- Location:
- branches/Async
- Files:
-
- 3 deleted
- 5 edited
- 4 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/Async
- Property svn:mergeinfo changed
-
branches/Async/HeuristicLab.DataPreprocessing/3.4
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.DataPreprocessing/3.4 (added) merged: 13397,13427,13502,13504,13507-13508,13512,13514,13517,13838,13934-13935
- Property svn:mergeinfo changed
-
branches/Async/HeuristicLab.DataPreprocessing/3.4/HeuristicLab.DataPreprocessing-3.4.csproj
r12682 r15280 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/Async/HeuristicLab.DataPreprocessing/3.4/Plugin.cs.frame
r13321 r15280 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/Async/HeuristicLab.DataPreprocessing/3.4/ProblemDataCreator.cs
r13252 r15280 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) { … … 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; … … 84 97 targetVariable = context.Data.VariableNames.First(); 85 98 var inputVariables = GetDoubleInputVariables(targetVariable); 86 var newProblemData = new ClassificationProblemData(ExportedDataset, inputVariables, targetVariable, Transformations); 87 newProblemData.PositiveClass = oldProblemData.PositiveClass; 99 var newProblemData = new ClassificationProblemData(ExportedDataset, inputVariables, targetVariable, Transformations) { 100 PositiveClass = oldProblemData.PositiveClass 101 }; 88 102 return newProblemData; 89 103 }
Note: See TracChangeset
for help on using the changeset viewer.