Changeset 16415


Ignore:
Timestamp:
12/20/18 10:55:30 (2 months ago)
Author:
mkommend
Message:

#2892: Fixed used variables in LinearRegressionModel.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/HeuristicLab.Algorithms.DataAnalysis/3.4/Linear/LinearRegressionModel.cs

    r16389 r16415  
    5151   
    5252    public override IEnumerable<string> VariablesUsedForPrediction {
    53       get { return allowedInputVariables; }
     53      get { return allowedInputVariables.Union(factorVariables.Select(f => f.Key)); }
    5454    }
    5555
     
    8181      Array.Copy(covariance, C, covariance.Length);
    8282      this.NoiseSigma = noiseSigma;
     83      var stringInputVariables = factorVariables.Select(f => f.Key).Distinct();
    8384      this.allowedInputVariables = doubleInputVariables.ToArray();
    8485      this.factorVariables = factorVariables.Select(kvp => new KeyValuePair<string, IEnumerable<string>>(kvp.Key, new List<string>(kvp.Value))).ToList();
Note: See TracChangeset for help on using the changeset viewer.