Exemplo n.º 1
0
        public void NBestHeap(Array <float> mb, float[] bestd, int[] bestw)
        {
            var scores  = NN.Dot(Vectors, mb);
            var mapping = Enumerable.Range(0, Text.Length).ToArray();

            Sorting.Heapsort(scores.Values, mapping, bestd, bestw);
        }
Exemplo n.º 2
0
        public void NBestHeap(Array <float> mb, float[][] bestd, int[][] bestw)
        {
            Debug.Assert(mb.Shape[1] == bestd.Length && mb.Shape[1] == bestw.Length);
            var scores = NN.Dot(Vectors, mb);

            Sorting.Heapsort(scores, bestd, bestw);
        }
Exemplo n.º 3
0
        public void NBestHeap(Array <float> mb, float[] bestd, int[] bestw)
        {
            var scores = NN.Dot(Vectors, mb);

            Sorting.Heapsort(scores.Values, bestd, bestw);
        }