Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/08/12 14:04:17 (12 years ago)
Author:
mkommend
Message:

#1081: Intermediate commit of trunk updates - interpreter changes must be redone.

Location:
branches/HeuristicLab.TimeSeries
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.TimeSeries

    • Property svn:ignore
      •  

        old new  
        2020bin
        2121protoc.exe
         22_ReSharper.HeuristicLab.TimeSeries-3.3
  • branches/HeuristicLab.TimeSeries/HeuristicLab.Algorithms.DataAnalysis

  • branches/HeuristicLab.TimeSeries/HeuristicLab.Algorithms.DataAnalysis/3.4

    • Property svn:ignore
      •  

        old new  
        55*.vs10x
        66Plugin.cs
         7*.user
  • branches/HeuristicLab.TimeSeries/HeuristicLab.Algorithms.DataAnalysis/3.4/NeuralNetwork/NeuralNetworkClassification.cs

    r7259 r8430  
    5353      get { return (IFixedValueParameter<DoubleValue>)Parameters[DecayParameterName]; }
    5454    }
    55     public ConstrainedValueParameter<IntValue> HiddenLayersParameter {
    56       get { return (ConstrainedValueParameter<IntValue>)Parameters[HiddenLayersParameterName]; }
     55    public IConstrainedValueParameter<IntValue> HiddenLayersParameter {
     56      get { return (IConstrainedValueParameter<IntValue>)Parameters[HiddenLayersParameterName]; }
    5757    }
    5858    public IFixedValueParameter<IntValue> NodesInFirstHiddenLayerParameter {
     
    185185      string targetVariable = problemData.TargetVariable;
    186186      IEnumerable<string> allowedInputVariables = problemData.AllowedInputVariables;
    187       IEnumerable<int> rows = problemData.TrainingIndizes;
     187      IEnumerable<int> rows = problemData.TrainingIndices;
    188188      double[,] inputMatrix = AlglibUtil.PrepareInputMatrix(dataset, allowedInputVariables.Concat(new string[] { targetVariable }), rows);
    189189      if (inputMatrix.Cast<double>().Any(x => double.IsNaN(x) || double.IsInfinity(x)))
     
    195195      int nClasses = classValues.Count();
    196196      // map original class values to values [0..nClasses-1]
    197       Dictionary<double, double> classIndizes = new Dictionary<double, double>();
     197      Dictionary<double, double> classIndices = new Dictionary<double, double>();
    198198      for (int i = 0; i < nClasses; i++) {
    199         classIndizes[classValues[i]] = i;
     199        classIndices[classValues[i]] = i;
    200200      }
    201201      for (int row = 0; row < nRows; row++) {
    202         inputMatrix[row, nFeatures] = classIndizes[inputMatrix[row, nFeatures]];
     202        inputMatrix[row, nFeatures] = classIndices[inputMatrix[row, nFeatures]];
    203203      }
    204204
Note: See TracChangeset for help on using the changeset viewer.