コード例 #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);
        }
コード例 #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);
        }
コード例 #3
0
        public void NBestHeap(Array <float> mb, float[] bestd, int[] bestw)
        {
            var scores = NN.Dot(Vectors, mb);

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