Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/23/13 13:31:29 (12 years ago)
Author:
sforsten
Message:

#1980:

  • several small bug fixes
  • added windowing technique ILAS to GAssist
  • GAssist and XCS work now with real-valued features
  • severely improved the performance of XCS
Location:
branches/LearningClassifierSystems/HeuristicLab.Optimization.Operators.LCS/3.3/Discretizer
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • branches/LearningClassifierSystems/HeuristicLab.Optimization.Operators.LCS/3.3/Discretizer/IDiscretizer.cs

    r9342 r9392  
    2525namespace HeuristicLab.Optimization.Operators.LCS {
    2626  public interface IDiscretizer : IItem {
     27    IEnumerable<double> DiscretizeValues(string attribute, IEnumerable<double> values);
    2728    int NumberOfMicroIntervals(string attribute);
    2829    IEnumerable<double> GetCutPoints(string attribute);
  • branches/LearningClassifierSystems/HeuristicLab.Optimization.Operators.LCS/3.3/Discretizer/UniformWidthDiscretizer.cs

    r9342 r9392  
    2020#endregion
    2121
    22 using System;
    2322using System.Collections.Generic;
    2423using System.Linq;
     
    4241    protected UniformWidthDiscretizer(UniformWidthDiscretizer original, Cloner cloner)
    4342      : base(original, cloner) {
     43      this.bins = original.bins;
     44      this.variableMicroItervals = new Dictionary<string, IList<double>>(original.variableMicroItervals);
    4445    }
    4546    public UniformWidthDiscretizer()
    46       : base() {
    47       bins = 5;
     47      : this(5) {
    4848    }
    4949    public UniformWidthDiscretizer(int bins)
     
    6060    }
    6161
    62     public IEnumerable<double> discretizeValues(string attribute, IEnumerable<double> values) {
    63       if (variableMicroItervals.ContainsKey(attribute)) {
    64         throw new ArgumentException("Values of attribute " + attribute + " are already set.");
    65       }
    66 
     62    public IEnumerable<double> DiscretizeValues(string attribute, IEnumerable<double> values) {
    6763      double min = values.Min();
    6864      double max = values.Max();
Note: See TracChangeset for help on using the changeset viewer.