Changeset 11070
- Timestamp:
- 07/01/14 17:42:44 (10 years ago)
- Location:
- branches/DataPreprocessing
- Files:
-
- 1 deleted
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing/HeuristicLab.Algorithms.DataAnalysis/3.4/HeuristicLab.Algorithms.DataAnalysis-3.4.csproj
r10925 r11070 279 279 <ProjectReference Include="..\..\HeuristicLab.Algorithms.GradientDescent\3.3\HeuristicLab.Algorithms.GradientDescent-3.3.csproj"> 280 280 <Project>{1256B945-EEA9-4BE4-9880-76B5B113F089}</Project> 281 <Name>HeuristicLab.Algorithms.GradientDescent -3.3</Name>281 <Name>HeuristicLab.Algorithms.GradientDescent</Name> 282 282 <Private>False</Private> 283 283 </ProjectReference> -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.4/DataGridContentView.cs
r11042 r11070 37 37 private bool notOwnEvent = true; 38 38 private bool isSearching = false; 39 private bool isReplacing = false;40 39 private bool updateOnMouseUp = false; 41 40 private SearchAndReplaceDialog findAndReplaceDialog; … … 570 569 571 570 private void StartReplacing() { 572 isReplacing = true;573 571 SuspendRepaint(); 574 572 } 575 573 576 574 private void StopReplacing() { 577 isReplacing = false;578 575 ResumeRepaint(true); 579 576 } -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.4/ManipulationView.cs
r11045 r11070 78 78 protected override void RegisterContentEvents() { 79 79 base.RegisterContentEvents(); 80 Content.ManipulationLogic.Changed += Content_Changed;81 80 Content.FilterLogic.FilterChanged += FilterLogic_FilterChanged; 82 81 } 83 82 84 83 protected override void DeregisterContentEvents() { 84 Content.FilterLogic.FilterChanged -= FilterLogic_FilterChanged; 85 85 base.DeregisterContentEvents(); 86 Content.ManipulationLogic.Changed -= Content_Changed;87 Content.FilterLogic.FilterChanged -= FilterLogic_FilterChanged;88 86 } 89 87 … … 219 217 var allIndices = Content.SearchLogic.GetMissingValueIndices(); 220 218 int count = allIndices[columnIndex].Count; 221 int cellCount = Content.FilterLogic.PreprocessingData.Rows *Content.FilterLogic.PreprocessingData.Columns;219 int cellCount = Content.FilterLogic.PreprocessingData.Rows * Content.FilterLogic.PreprocessingData.Columns; 222 220 lblPreviewReplaceMissingValues.Text = count + " cell" + (count > 1 || count == 0 ? "s" : "") 223 221 + " of " + cellCount + " (" + string.Format("{0:F2}%", 100d / cellCount * count) + ") were detected with missing values which would be replaced with " + replaceWith; … … 292 290 } 293 291 294 void Content_Changed(object sender, DataPreprocessingChangedEventArgs e) {295 switch (lstMethods.SelectedIndex) {296 case 0:297 validateDeleteColumnsInfo();298 break;299 case 1:300 validateDeleteColumnsVariance();301 break;302 case 2:303 validateDeleteRowsInfo();304 break;305 }306 }307 308 292 private void cmbReplaceWith_SelectedIndexChanged(object sender, EventArgs e) { 309 293 bool isReplaceWithValueSelected = cmbReplaceWith.SelectedIndex == 0; -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.4/Implementations/DataCompletenessChartContent.cs
r11004 r11070 6 6 [Item("DataCompletenessChart", "Represents a datacompleteness chart.")] 7 7 8 public class DataCompletenessChartContent : Item, IViewChartShortcut 9 { 8 public class DataCompletenessChartContent : Item, IViewChartShortcut { 10 9 public static new Image StaticItemImage { 11 10 get { return HeuristicLab.Common.Resources.VSImageLibrary.EditBrightnessContrast; } 12 11 } 13 12 14 private readonly SearchLogic searchLogic;15 16 13 public IDataGridLogic DataGridLogic { get; private set; } 17 14 public ISearchLogic SearchLogic { get; private set; } 18 15 19 public DataCompletenessChartContent(SearchLogic searchLogic) 20 { 16 public DataCompletenessChartContent(SearchLogic searchLogic) { 21 17 SearchLogic = searchLogic; 22 18 } 23 19 24 20 public DataCompletenessChartContent(DataCompletenessChartContent content, Cloner cloner) 25 : base(content, cloner) 26 { 27 SearchLogic = content.searchLogic; 21 : base(content, cloner) { 22 SearchLogic = content.SearchLogic; 28 23 } 29 24 -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.4/Implementations/DataGridContent.cs
r11002 r11070 23 23 using System.Collections.Generic; 24 24 using System.Drawing; 25 using System.Globalization;26 25 using System.Linq; 27 26 using HeuristicLab.Common; 28 27 using HeuristicLab.Core; 29 using HeuristicLab.Data;30 28 31 29 namespace HeuristicLab.DataPreprocessing { … … 95 93 96 94 97 private IDictionary<int, IList<int>> selection;98 95 public IDictionary<int, IList<int>> Selection { 99 96 get { return PreProcessingData.Selection; } … … 145 142 146 143 #region unused stuff/not implemented but necessary due to IStringConvertibleMatrix 147 144 #pragma warning disable 0067 148 145 // Is not used since DataGridContentView overrides dataGridView_CellValidating and uses 149 146 // DataGridLogic#Validate(string value, out string errorMessage, int columnIndex) … … 160 157 public event EventHandler<EventArgs<int, int>> ItemChanged; 161 158 public event EventHandler Reset; 159 160 #pragma warning restore 0067 162 161 #endregion 163 162 -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.4/Implementations/ManipulationLogic.cs
r11002 r11070 27 27 namespace HeuristicLab.DataPreprocessing { 28 28 public class ManipulationLogic : IManipulationLogic { 29 private ITransactionalPreprocessingData preprocessingData;30 private IStatisticsLogic statisticsLogic;31 private ISearchLogic searchLogic;29 private readonly ITransactionalPreprocessingData preprocessingData; 30 private readonly IStatisticsLogic statisticsLogic; 31 private readonly ISearchLogic searchLogic; 32 32 33 33 public IEnumerable<string> VariableNames { … … 402 402 } 403 403 404 public event DataPreprocessingChangedEventHandler Changed;405 404 } 406 405 } -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.4/Interfaces/IManipulationLogic.cs
r11002 r11070 46 46 void DeleteColumnsWithMissingValuesGreater(double percent); 47 47 void DeleteColumnsWithVarianceSmaller(double variance); 48 49 event DataPreprocessingChangedEventHandler Changed;50 51 52 48 } 53 49 } -
branches/DataPreprocessing/HeuristicLab.Optimization.Views/3.3/HeuristicLab.Optimization.Views-3.3.csproj
r10589 r11070 392 392 </ProjectReference> 393 393 </ItemGroup> 394 <ItemGroup>395 <EmbeddedResource Include="RunCollectionConstraintViews\RunCollectionComparisonConstraintView.resx">396 <DependentUpon>RunCollectionComparisonConstraintView.cs</DependentUpon>397 </EmbeddedResource>398 </ItemGroup>399 394 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> 400 395 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. -
branches/DataPreprocessing/HeuristicLab.Optimization.Views/3.3/RunCollectionConstraintViews/RunCollectionComparisonConstraintView.Designer.cs
r10589 r11070 48 48 this.txtConstraintData = new System.Windows.Forms.TextBox(); 49 49 this.errorProvider = new System.Windows.Forms.ErrorProvider(this.components); 50 this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);51 50 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit(); 52 51 this.SuspendLayout(); … … 54 53 // txtConstraintData 55 54 // 56 this.txtConstraintData.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 55 this.txtConstraintData.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 57 56 | System.Windows.Forms.AnchorStyles.Right))); 58 57 this.errorProvider.SetIconAlignment(this.txtConstraintData, System.Windows.Forms.ErrorIconAlignment.MiddleLeft); … … 68 67 // 69 68 this.errorProvider.ContainerControl = this; 70 //71 // contextMenuStrip172 //73 this.contextMenuStrip1.Name = "contextMenuStrip1";74 69 // 75 70 // RunCollectionComparisonConstraintView … … 92 87 private System.Windows.Forms.TextBox txtConstraintData; 93 88 private System.Windows.Forms.ErrorProvider errorProvider; 94 private System.Windows.Forms.ContextMenuStrip contextMenuStrip1;95 89 } 96 90 } -
branches/DataPreprocessing/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression.Views/3.4/SymbolicRegressionSolutionView.cs
r11011 r11070 44 44 btnSimplify.Enabled = Content != null && !Locked; 45 45 exportButton.Enabled = Content != null && !Locked; 46 transformModelButton.Visible = false; 46 47 transformModelButton.Enabled = Content != null && !Locked; 47 48 } -
branches/DataPreprocessing/HeuristicLab.Problems.DataAnalysis.Trading/3.4/ProblemData.cs
r11068 r11070 1627 1627 } 1628 1628 1629 public ProblemData(Dataset dataset, IEnumerable<string> allowedInputVariables, string targetVariable, I List<ITransformation> transformations = null)1630 : base(dataset, allowedInputVariables, transformations ?? new List<ITransformation>()) {1629 public ProblemData(Dataset dataset, IEnumerable<string> allowedInputVariables, string targetVariable, IEnumerable<ITransformation> transformations = null) 1630 : base(dataset, allowedInputVariables, transformations ?? Enumerable.Empty<ITransformation>()) { 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))); -
branches/DataPreprocessing/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Classification/ClassificationProblemData.cs
r11068 r11070 300 300 } 301 301 302 public ClassificationProblemData(Dataset dataset, IEnumerable<string> allowedInputVariables, string targetVariable, I List<ITransformation> transformations = null)303 : base(dataset, allowedInputVariables, transformations ?? new List<ITransformation>()) {302 public ClassificationProblemData(Dataset dataset, IEnumerable<string> allowedInputVariables, string targetVariable, IEnumerable<ITransformation> transformations = null) 303 : base(dataset, allowedInputVariables, transformations ?? Enumerable.Empty<ITransformation>()) { 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(); -
branches/DataPreprocessing/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Clustering/ClusteringProblemData.cs
r11068 r11070 21 21 22 22 using System.Collections.Generic; 23 using System.Linq; 23 24 using HeuristicLab.Common; 24 25 using HeuristicLab.Core; … … 86 87 } 87 88 88 public ClusteringProblemData(Dataset dataset, IEnumerable<string> allowedInputVariables, I List<ITransformation> transformations = null)89 : base(dataset, allowedInputVariables, transformations ?? new List<ITransformation>()) {89 public ClusteringProblemData(Dataset dataset, IEnumerable<string> allowedInputVariables, IEnumerable<ITransformation> transformations = null) 90 : base(dataset, allowedInputVariables, transformations ?? Enumerable.Empty<ITransformation>()) { 90 91 } 91 92 } -
branches/DataPreprocessing/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Regression/RegressionProblemData.cs
r11068 r11070 137 137 } 138 138 139 public RegressionProblemData(Dataset dataset, IEnumerable<string> allowedInputVariables, string targetVariable, I List<ITransformation> transformations = null)140 : base(dataset, allowedInputVariables, transformations ?? new List<ITransformation>()) {139 public RegressionProblemData(Dataset dataset, IEnumerable<string> allowedInputVariables, string targetVariable, IEnumerable<ITransformation> transformations = null) 140 : base(dataset, allowedInputVariables, transformations ?? Enumerable.Empty<ITransformation>()) { 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())); -
branches/DataPreprocessing/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/TimeSeriesPrognosis/TimeSeriesPrognosisProblemData.cs
r11064 r11070 1582 1582 TrainingPartition.Start = 50; 1583 1583 } 1584 public TimeSeriesPrognosisProblemData(Dataset dataset, IEnumerable<string> allowedInputVariables, string targetVariable )1585 : base(dataset, allowedInputVariables, targetVariable ) {1584 public TimeSeriesPrognosisProblemData(Dataset dataset, IEnumerable<string> allowedInputVariables, string targetVariable, IEnumerable<ITransformation> transformations = null) 1585 : base(dataset, allowedInputVariables, targetVariable, transformations ?? Enumerable.Empty<ITransformation>()) { 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
Note: See TracChangeset
for help on using the changeset viewer.