Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/11/14 15:16:42 (11 years ago)
Author:
mkommend
Message:

#1998: Reimplemented OneR classification algorithm.

Location:
branches/ClassificationModelComparison/HeuristicLab.Algorithms.DataAnalysis/3.4
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • branches/ClassificationModelComparison/HeuristicLab.Algorithms.DataAnalysis/3.4/HeuristicLab.Algorithms.DataAnalysis-3.4.csproj

    r10553 r10569  
    298298    </Compile>
    299299    <Compile Include="Linear\AlglibUtil.cs" />
     300    <Compile Include="Linear\OneRTest.cs" />
    300301    <Compile Include="Linear\OneR.cs" />
    301302    <Compile Include="Linear\OneR\OneRClassificationModel.cs" />
  • branches/ClassificationModelComparison/HeuristicLab.Algorithms.DataAnalysis/3.4/Linear/OneR.cs

    r9135 r10569  
    6565
    6666    protected override void Run() {
    67       int blub = MinBucketSizeParameter.Value.Value;
    68       Console.WriteLine(blub);
    69       IRandom bla = RandomParameter.Value;
    70       Console.WriteLine(bla);
     67      var startTime = DateTime.Now;
    7168      var solution = CreateOneRSolution(Problem.ProblemData, MinBucketSizeParameter.Value.Value, RandomParameter.Value);
    7269      Results.Add(new Result("OneR solution", "The 1R classifier.", solution));
     70      Results.Add(new Result("OneR Execution Time", "", new TimeSpanValue(DateTime.Now - startTime)));
     71
     72      startTime = DateTime.Now;
     73      var solution3 = OneRTest.CreateOneRSolution(Problem.ProblemData, MinBucketSizeParameter.Value.Value);
     74      Results.Add(new Result("OneR Test2 solution", "The 1R classifier.", solution3));
     75      Results.Add(new Result("OneR Test2 Execution", "", new TimeSpanValue(DateTime.Now - startTime)));
    7376    }
    7477
Note: See TracChangeset for help on using the changeset viewer.