Ignore:
Timestamp:
09/25/18 08:52:47 (3 years ago)
Author:
fholzing
Message:

#2904: Fixed Types (String for FactorVariables) for Classification

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2904_CalculateImpacts/3.4/Implementation/Classification/ClassificationSolutionVariableImpactsCalculator.cs

    r16055 r16181  
    189189      } else if (modifiableDataset.VariableHasType<string>(variableName)) {
    190190        originalValues = modifiableDataset.GetReadOnlyStringValues(variableName).ToList();
    191         replacementValues = GetReplacementValuesForString(model, modifiableDataset, variableName, rows, originalValues, targetValues, factorReplacementMethod);
     191        replacementValues = GetReplacementValuesForString(model, modifiableDataset, variableName, rows, (List<string>)originalValues, targetValues, factorReplacementMethod);
    192192      } else {
    193193        throw new NotSupportedException("Variable not supported");
     
    249249      string variableName,
    250250      IEnumerable<int> rows,
    251       IList originalValues,
     251      List<string> originalValues,
    252252      IEnumerable<double> targetValues,
    253253      FactorReplacementMethodEnum factorReplacementMethod = FactorReplacementMethodEnum.Shuffle) {
    254254
    255       IList replacementValues = null;
     255      List<string> replacementValues = null;
    256256      IRandom random = new FastRandom(31415);
    257257
Note: See TracChangeset for help on using the changeset viewer.