Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/04/13 15:16:49 (11 years ago)
Author:
abeham
Message:

#1913: removed scaling of data

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/Nca/Initialization/NcaInitializer.cs

    r9270 r9272  
    4343      get { return (ILookupParameter<RealVector>)Parameters["NcaMatrix"]; }
    4444    }
    45     public ILookupParameter<Scaling> ScalingParameter {
    46       get { return (ILookupParameter<Scaling>)Parameters["Scaling"]; }
    47     }
    4845
    4946    [StorableConstructor]
     
    5451      Parameters.Add(new LookupParameter<IntValue>("Dimensions", "The number of dimensions to which the features should be pruned."));
    5552      Parameters.Add(new LookupParameter<RealVector>("NcaMatrix", "The coefficients of the matrix that need to be optimized. Note that the matrix is flattened."));
    56       Parameters.Add(new LookupParameter<Scaling>("Scaling", "Each dataset is scaled and the information is stored in a scaling object."));
    5753    }
    5854
    5955    public override IOperation Apply() {
    6056      var problemData = ProblemDataParameter.ActualValue;
    61       var scaling = new Scaling(problemData.Dataset, problemData.AllowedInputVariables, problemData.TrainingIndices);
    6257
    6358      var dimensions = DimensionsParameter.ActualValue.Value;
    64       var matrix = Initialize(problemData, scaling, dimensions);
     59      var matrix = Initialize(problemData, dimensions);
    6560      var attributes = matrix.GetLength(0);
    6661
     
    7065          result[i * dimensions + j] = matrix[i, j];
    7166
    72       ScalingParameter.ActualValue = scaling;
    7367      NcaMatrixParameter.ActualValue = new RealVector(result);
    7468      return base.Apply();
    7569    }
    7670
    77     public abstract double[,] Initialize(IClassificationProblemData data, Scaling scaling, int dimensions);
     71    public abstract double[,] Initialize(IClassificationProblemData data, int dimensions);
    7872  }
    7973}
Note: See TracChangeset for help on using the changeset viewer.