Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/19/17 18:47:00 (7 years ago)
Author:
gkronber
Message:

#2700: made some changes while reviewing the code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/TSNE/HeuristicLab.Algorithms.DataAnalysis/3.4/TSNE/TSNE.cs

    r14742 r14767  
    6767namespace HeuristicLab.Algorithms.DataAnalysis {
    6868  [StorableClass]
    69   public class TSNE<T> : DeepCloneable, ITSNE<T> where T : class, IDeepCloneable {
     69  public class TSNE<T> : DeepCloneable where T : class, IDeepCloneable {
    7070
    7171    private const string IterationResultName = "Iteration";
     
    192192      return new TSNE<TR>(distance, random).Run(data, newDimensions, perplexity, theta);
    193193    }
    194     public static double[,] Run<TR>(TR[] data, int newDimensions, double perplexity, double theta, Func<TR, TR, double> distance, IRandom random) where TR : class, IDeepCloneable {
    195       return new TSNE<TR>(new FuctionalDistance<TR>(distance), random).Run(data, newDimensions, perplexity, theta);
    196     }
    197194
    198195    #region helpers
     
    224221      if (results == null) return;
    225222      var plot = results[ErrorPlotResultName].Value as DataTable;
    226       if (plot == null) throw new ArgumentException("Could not create/access Error-DataTable in Results-Collection. Was it removed by some effect?");
     223      if (plot == null) throw new ArgumentException("Could not create/access error data table in results collection. Was it removed by some effect?");
    227224      var errors = plot.Rows["errors"].Values;
    228225      var c = exact
Note: See TracChangeset for help on using the changeset viewer.