Exemplo n.º 1
0
        private SparseVector <double> GetSupportVector(int idx)
        {
            int featCount             = SvmLightLib.GetSupportVectorFeatureCount(mModelId, idx);
            SparseVector <double> vec = new SparseVector <double>();

            for (int i = 0; i < featCount; i++)
            {
                vec.InnerIdx.Add(SvmLightLib.GetSupportVectorFeature(mModelId, idx, i));
                vec.InnerDat.Add(SvmLightLib.GetSupportVectorWeight(mModelId, idx, i));
            }
            return(vec);
        }