- Timestamp:
- 03/19/11 02:22:45 (14 years ago)
- Location:
- branches/DataAnalysis Refactoring/HeuristicLab.Algorithms.DataAnalysis/3.4
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataAnalysis Refactoring/HeuristicLab.Algorithms.DataAnalysis/3.4/CrossValidation.cs
r5659 r5759 271 271 clonedAlgorithm.Name = algorithm.Name + " Fold " + i; 272 272 IDataAnalysisProblem problem = clonedAlgorithm.Problem as IDataAnalysisProblem; 273 problem.ProblemData.TestPartition End.Value= (i + 1) == Folds.Value ? SamplesEnd.Value : (i + 1) * testSamplesCount + SamplesStart.Value;274 problem.ProblemData.TestPartition Start.Value= (i * testSamplesCount) + SamplesStart.Value;273 problem.ProblemData.TestPartition.End = (i + 1) == Folds.Value ? SamplesEnd.Value : (i + 1) * testSamplesCount + SamplesStart.Value; 274 problem.ProblemData.TestPartition.Start = (i * testSamplesCount) + SamplesStart.Value; 275 275 clonedAlgorithms.Add(clonedAlgorithm); 276 276 } … … 408 408 } 409 409 private void SamplesStart_ValueChanged(object sender, EventArgs e) { 410 if (Problem != null) Problem.ProblemData.TrainingPartition Start.Value= SamplesStart.Value;410 if (Problem != null) Problem.ProblemData.TrainingPartition.Start = SamplesStart.Value; 411 411 } 412 412 private void SamplesEnd_ValueChanged(object sender, EventArgs e) { 413 if (Problem != null) Problem.ProblemData.TrainingPartition End.Value= SamplesEnd.Value;413 if (Problem != null) Problem.ProblemData.TrainingPartition.End = SamplesEnd.Value; 414 414 } 415 415 -
branches/DataAnalysis Refactoring/HeuristicLab.Algorithms.DataAnalysis/3.4/Linear/LinearDiscriminantAnalysis.cs
r5736 r5759 71 71 string targetVariable = problemData.TargetVariable; 72 72 IEnumerable<string> allowedInputVariables = problemData.AllowedInputVariables; 73 int samplesStart = problemData.TrainingPartition Start.Value;74 int samplesEnd = problemData.TrainingPartition End.Value;73 int samplesStart = problemData.TrainingPartition.Start; 74 int samplesEnd = problemData.TrainingPartition.End; 75 75 IEnumerable<int> rows = Enumerable.Range(samplesStart, samplesEnd - samplesStart); 76 76 int nClasses = problemData.ClassNames.Count(); -
branches/DataAnalysis Refactoring/HeuristicLab.Algorithms.DataAnalysis/3.4/Linear/LinearRegression.cs
r5733 r5759 73 73 string targetVariable = problemData.TargetVariable; 74 74 IEnumerable<string> allowedInputVariables = problemData.AllowedInputVariables; 75 int samplesStart = problemData.TrainingPartition Start.Value;76 int samplesEnd = problemData.TrainingPartition End.Value;75 int samplesStart = problemData.TrainingPartition.Start; 76 int samplesEnd = problemData.TrainingPartition.End; 77 77 IEnumerable<int> rows = Enumerable.Range(samplesStart, samplesEnd - samplesStart); 78 78 double[,] inputMatrix = AlglibUtil.PrepareInputMatrix(dataset, allowedInputVariables.Concat(new string[] { targetVariable }), rows); -
branches/DataAnalysis Refactoring/HeuristicLab.Algorithms.DataAnalysis/3.4/SupportVectorMachine/SupportVectorClassification.cs
r5690 r5759 21 21 22 22 using System; 23 using System.Collections.Generic; 23 24 using System.Linq; 24 25 using HeuristicLab.Common; … … 29 30 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 30 31 using HeuristicLab.Problems.DataAnalysis; 31 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;32 using System.Collections.Generic;33 using HeuristicLab.Problems.DataAnalysis.Symbolic;34 32 35 33 namespace HeuristicLab.Algorithms.DataAnalysis { … … 124 122 Dataset dataset = problemData.Dataset; 125 123 string targetVariable = problemData.TargetVariable; 126 int start = problemData.TrainingPartition Start.Value;127 int end = problemData.TrainingPartition End.Value;124 int start = problemData.TrainingPartition.Start; 125 int end = problemData.TrainingPartition.End; 128 126 IEnumerable<int> rows = Enumerable.Range(start, end - start); 129 127 -
branches/DataAnalysis Refactoring/HeuristicLab.Algorithms.DataAnalysis/3.4/SupportVectorMachine/SupportVectorRegression.cs
r5649 r5759 132 132 Dataset dataset = problemData.Dataset; 133 133 string targetVariable = problemData.TargetVariable; 134 int start = problemData.TrainingPartition Start.Value;135 int end = problemData.TrainingPartition End.Value;134 int start = problemData.TrainingPartition.Start; 135 int end = problemData.TrainingPartition.End; 136 136 IEnumerable<int> rows = Enumerable.Range(start, end - start); 137 137 -
branches/DataAnalysis Refactoring/HeuristicLab.Algorithms.DataAnalysis/3.4/kMeans/KMeansClustering.cs
r5658 r5759 88 88 Dataset dataset = problemData.Dataset; 89 89 IEnumerable<string> allowedInputVariables = problemData.AllowedInputVariables; 90 int start = problemData.TrainingPartition Start.Value;91 int end = problemData.TrainingPartition End.Value;90 int start = problemData.TrainingPartition.Start; 91 int end = problemData.TrainingPartition.End; 92 92 IEnumerable<int> rows = Enumerable.Range(start, end - start); 93 93 int info;
Note: See TracChangeset
for help on using the changeset viewer.