Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/10/12 15:21:19 (12 years ago)
Author:
abeham
Message:

#1913:

  • Refactored classes
  • Added parameter for number of iterations
  • Added parameter for neighborhood sampling (allows to speed up gradient calculation)
  • Adapted to changed k-NN algorithm
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/NCA/HeuristicLab.Algorithms.NCA.Views/3.3/NCADimensionReductionView.cs

    r8437 r8466  
    3131namespace HeuristicLab.Algorithms.NCA.Views {
    3232  [View("Dimension Reduction")]
    33   [Content(typeof(INCAClassificationSolution), IsDefaultView = false)]
     33  [Content(typeof(INcaClassificationSolution), IsDefaultView = false)]
    3434  public partial class NCADimensionReductionView : DataAnalysisSolutionEvaluationView {
    3535    private ViewHost viewHost = new ViewHost();
    3636    private ScatterPlot scatterPlot = new ScatterPlot();
    3737
    38     public new INCAClassificationSolution Content {
    39       get { return (INCAClassificationSolution)base.Content; }
     38    public new INcaClassificationSolution Content {
     39      get { return (INcaClassificationSolution)base.Content; }
    4040      set { base.Content = value; }
    4141    }
     
    7373
    7474      int idx = 0;
    75       if (reduced.GetLength(1) == 1) {
     75      if (reduced.GetLength(1) == 2) { // last column is the target variable
    7676        foreach (var r in range) {
    7777          var label = Content.ProblemData.Dataset.GetDoubleValue(Content.ProblemData.TargetVariable, r);
Note: See TracChangeset for help on using the changeset viewer.