Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/22/17 11:06:08 (6 years ago)
Author:
bwerth
Message:

#2850 fixed comment in TSNEAlgorithm; private methods in TSNE less dependent on array type

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Weighted TSNE/3.4/TSNE/TSNEAlgorithm.cs

    r15484 r15485  
    285285        var allowedInputVariables = problemData.AllowedInputVariables.ToArray();
    286286        var allindices = Problem.ProblemData.AllIndices.ToArray();
     287
     288        // jagged array is required to meet the static method declarations of TSNEStatic<T>
    287289        var data = Enumerable.Range(0, dataset.Rows).Select(x => new double[allowedInputVariables.Length]).ToArray();
    288290        var col = 0;
     
    296298        }
    297299
    298         //data = allindices.Select(row => allowedInputVariables.Select(col => dataset.GetDoubleValue(col, row)).ToArray()).ToArray();
    299300        if (Normalization) data = NormalizeInputData(data);
    300301        state = TSNEStatic<double[]>.CreateState(data, DistanceFunction, random, NewDimensions, Perplexity, Theta, StopLyingIteration, MomentumSwitchIteration, InitialMomentum, FinalMomentum, Eta, RandomInitialization);
Note: See TracChangeset for help on using the changeset viewer.