public void ConstructorTest()
{
Accord.Math.Random.Generator.Seed = 0;
IdxReader idxReader = new IdxReader(Resources.train_images_idx3_ubyte);
double[][] X = idxReader.ReadToEndAsVectors<double>();
Assert.AreEqual(X.Length, 60000);
Assert.AreEqual(X[59999].Length, 784);
// Perform the initial dimensionality reduction using PCA
//var pca = new PrincipalComponentAnalysis(numberOfOutputs: 2);
//pca.Learn(X);
//pca.Save(@"pca_v3_1.bin");
var pca = Serializer.Load<PrincipalComponentAnalysis>(Properties.Resources.pca_mnist_v3_1);
X = pca.Transform(X);
TSNE tSNE = new TSNE();
var Y = tSNE.Transform(X);
Assert.Fail();
}