public void AccuracyTest2() { var y = new TensorOld(new double[] { 0, 0, 1, 0, 1, 0 }, 2, 3); var yHat = new TensorOld(new double[] { 0, 1, 0, 0, 1, 0 }, 2, 3); var expected = 0.5; var actual = CrossEntropy.ComputeAccuracy(y, yHat); Assert.Equal(expected, actual); }