Free cookie consent management tool by TermsFeed Policy Generator

Changeset 4393


Ignore:
Timestamp:
09/15/10 13:01:53 (14 years ago)
Author:
mkommend
Message:

Corrected DataAnalysisProblemData ctor (ticket #939).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/DataAnalysisProblemData.cs

    r4348 r4393  
    3434  [StorableClass]
    3535  public class DataAnalysisProblemData : ParameterizedNamedItem {
    36     private bool suppressEvents = false;
     36    protected bool suppressEvents = false;
    3737    #region default data
    3838    // y = x^4 + x^3 + x^2 + x
     
    182182    public DataAnalysisProblemData(Dataset dataset, IEnumerable<string> inputVariables, string targetVariable,
    183183      int trainingSamplesStart, int trainingSamplesEnd, int testSamplesStart, int testSamplesEnd) {
    184       var inputVariablesList = new CheckedItemList<StringValue>(inputVariables.Select(x => new StringValue(x)));
     184      var inputVariablesList = new CheckedItemList<StringValue>(inputVariables.Select(x => new StringValue(x)).ToList());
    185185      StringValue targetVariableValue = new StringValue(targetVariable);
    186186      var validTargetVariables = new ItemSet<StringValue>();
Note: See TracChangeset for help on using the changeset viewer.