Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/19/11 02:22:45 (14 years ago)
Author:
mkommend
Message:

#1418:

  • Worked on IntRange and DoubleRange
  • Updated evaluators, analyzers, problems and problem data to use IntRanges
  • Removed properties to access the value of LookupParameter
  • Corrected files.txt
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  
    271271            clonedAlgorithm.Name = algorithm.Name + " Fold " + i;
    272272            IDataAnalysisProblem problem = clonedAlgorithm.Problem as IDataAnalysisProblem;
    273             problem.ProblemData.TestPartitionEnd.Value = (i + 1) == Folds.Value ? SamplesEnd.Value : (i + 1) * testSamplesCount + SamplesStart.Value;
    274             problem.ProblemData.TestPartitionStart.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;
    275275            clonedAlgorithms.Add(clonedAlgorithm);
    276276          }
     
    408408    }
    409409    private void SamplesStart_ValueChanged(object sender, EventArgs e) {
    410       if (Problem != null) Problem.ProblemData.TrainingPartitionStart.Value = SamplesStart.Value;
     410      if (Problem != null) Problem.ProblemData.TrainingPartition.Start = SamplesStart.Value;
    411411    }
    412412    private void SamplesEnd_ValueChanged(object sender, EventArgs e) {
    413       if (Problem != null) Problem.ProblemData.TrainingPartitionEnd.Value = SamplesEnd.Value;
     413      if (Problem != null) Problem.ProblemData.TrainingPartition.End = SamplesEnd.Value;
    414414    }
    415415
  • branches/DataAnalysis Refactoring/HeuristicLab.Algorithms.DataAnalysis/3.4/Linear/LinearDiscriminantAnalysis.cs

    r5736 r5759  
    7171      string targetVariable = problemData.TargetVariable;
    7272      IEnumerable<string> allowedInputVariables = problemData.AllowedInputVariables;
    73       int samplesStart = problemData.TrainingPartitionStart.Value;
    74       int samplesEnd = problemData.TrainingPartitionEnd.Value;
     73      int samplesStart = problemData.TrainingPartition.Start;
     74      int samplesEnd = problemData.TrainingPartition.End;
    7575      IEnumerable<int> rows = Enumerable.Range(samplesStart, samplesEnd - samplesStart);
    7676      int nClasses = problemData.ClassNames.Count();
  • branches/DataAnalysis Refactoring/HeuristicLab.Algorithms.DataAnalysis/3.4/Linear/LinearRegression.cs

    r5733 r5759  
    7373      string targetVariable = problemData.TargetVariable;
    7474      IEnumerable<string> allowedInputVariables = problemData.AllowedInputVariables;
    75       int samplesStart = problemData.TrainingPartitionStart.Value;
    76       int samplesEnd = problemData.TrainingPartitionEnd.Value;
     75      int samplesStart = problemData.TrainingPartition.Start;
     76      int samplesEnd = problemData.TrainingPartition.End;
    7777      IEnumerable<int> rows = Enumerable.Range(samplesStart, samplesEnd - samplesStart);
    7878      double[,] inputMatrix = AlglibUtil.PrepareInputMatrix(dataset, allowedInputVariables.Concat(new string[] { targetVariable }), rows);
  • branches/DataAnalysis Refactoring/HeuristicLab.Algorithms.DataAnalysis/3.4/SupportVectorMachine/SupportVectorClassification.cs

    r5690 r5759  
    2121
    2222using System;
     23using System.Collections.Generic;
    2324using System.Linq;
    2425using HeuristicLab.Common;
     
    2930using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    3031using HeuristicLab.Problems.DataAnalysis;
    31 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
    32 using System.Collections.Generic;
    33 using HeuristicLab.Problems.DataAnalysis.Symbolic;
    3432
    3533namespace HeuristicLab.Algorithms.DataAnalysis {
     
    124122      Dataset dataset = problemData.Dataset;
    125123      string targetVariable = problemData.TargetVariable;
    126       int start = problemData.TrainingPartitionStart.Value;
    127       int end = problemData.TrainingPartitionEnd.Value;
     124      int start = problemData.TrainingPartition.Start;
     125      int end = problemData.TrainingPartition.End;
    128126      IEnumerable<int> rows = Enumerable.Range(start, end - start);
    129127
  • branches/DataAnalysis Refactoring/HeuristicLab.Algorithms.DataAnalysis/3.4/SupportVectorMachine/SupportVectorRegression.cs

    r5649 r5759  
    132132      Dataset dataset = problemData.Dataset;
    133133      string targetVariable = problemData.TargetVariable;
    134       int start = problemData.TrainingPartitionStart.Value;
    135       int end = problemData.TrainingPartitionEnd.Value;
     134      int start = problemData.TrainingPartition.Start;
     135      int end = problemData.TrainingPartition.End;
    136136      IEnumerable<int> rows = Enumerable.Range(start, end - start);
    137137
  • branches/DataAnalysis Refactoring/HeuristicLab.Algorithms.DataAnalysis/3.4/kMeans/KMeansClustering.cs

    r5658 r5759  
    8888      Dataset dataset = problemData.Dataset;
    8989      IEnumerable<string> allowedInputVariables = problemData.AllowedInputVariables;
    90       int start = problemData.TrainingPartitionStart.Value;
    91       int end = problemData.TrainingPartitionEnd.Value;
     90      int start = problemData.TrainingPartition.Start;
     91      int end = problemData.TrainingPartition.End;
    9292      IEnumerable<int> rows = Enumerable.Range(start, end - start);
    9393      int info;
Note: See TracChangeset for help on using the changeset viewer.