- Timestamp:
- 03/19/17 18:47:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/TSNE/HeuristicLab.Algorithms.DataAnalysis/3.4/TSNE/TSNE.cs
r14742 r14767 67 67 namespace HeuristicLab.Algorithms.DataAnalysis { 68 68 [StorableClass] 69 public class TSNE<T> : DeepCloneable , ITSNE<T>where T : class, IDeepCloneable {69 public class TSNE<T> : DeepCloneable where T : class, IDeepCloneable { 70 70 71 71 private const string IterationResultName = "Iteration"; … … 192 192 return new TSNE<TR>(distance, random).Run(data, newDimensions, perplexity, theta); 193 193 } 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 }197 194 198 195 #region helpers … … 224 221 if (results == null) return; 225 222 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?"); 227 224 var errors = plot.Rows["errors"].Values; 228 225 var c = exact
Note: See TracChangeset
for help on using the changeset viewer.