Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/260.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 如何在c中使用libsvim_C#_Libsvm - Fatal编程技术网

C# 如何在c中使用libsvim

C# 如何在c中使用libsvim,c#,libsvm,C#,Libsvm,我从 我找到了一些示例代码。示例代码是: var prob = ProblemHelper.ReadAndScaleProblem(TRAINING_FILE); var test = ProblemHelper.ReadAndScaleProblem(TEST_FILE); var svm = new C_SVC(prob, KernelHelper.RadialBasisFunctionKernel(gamma), C);

我从 我找到了一些示例代码。示例代码是:

var prob = ProblemHelper.ReadAndScaleProblem(TRAINING_FILE);
            var test = ProblemHelper.ReadAndScaleProblem(TEST_FILE);
            var svm = new C_SVC(prob, KernelHelper.RadialBasisFunctionKernel(gamma), C);
            var accuracy = svm.GetCrossValidationAccuracy(nr_fold);// with nr_fold > 1
            for (int i = 0; i < test.l; i++)
            {
                var x = test.x[i];
                var y = test.y[i];
                var predictedY = svm.Predict(x); // returns the predicted value for 'x' attributes
                var probabilities = svm.PredictProbabilities(x);  // returns the probabilities for each class
                // Note : in about accuracy% of cases, 'predictedY' should be equal to 'y'
            }
但是libsvm名称空间不包含问题helper&C_SVC。问题是否来自代码? 有人能帮我一个示例代码吗?
谢谢

你知道那不是.NET图书馆吧?我不明白你说什么!我该怎么办?我应该下载另一个文件还是以另一种方式使用它?