accord.net

Non-linear Support Vector Regression with C# and “Accord.NET”

拈花ヽ惹草 提交于 2019-12-22 17:45:46
问题 what should I use for non-linear vector regression with C# in Accord ? Thanks (traininginputs double[][] and trainingoutput double[] NOT int[]) 回答1: Accord.NET provides a Support Vector Machine learning algorithm for regression problems in the SequentialMinimalOptimizationRegression class. There is an example application for this topic in the sample application's wiki page. Here is an example on how to use it: // Example regression problem. Suppose we are trying // to model the following

Find right features in multiclass svm without PCA

走远了吗. 提交于 2019-12-22 01:15:11
问题 I'm classifing users with a multiclass svm (one-against-on), 3 classes. In binary, I would be able to plot the distribution of the weight of each feature in the hyperplan equation for different training sets. In this case, I don't really need a PCA to see stability of the hyperplan and relative importance of the features (reudced centered btw). What would the alternative be in multiclass svm, as for each training set you have 3 classifiers and you choose one class according to the result of

AI algorithm for multi dimension solution optimization / prediction

时光总嘲笑我的痴心妄想 提交于 2019-12-21 06:44:34
问题 I have 6 int parameters ranging from 0 to 100 The total combination of the numbers are 100^6 and each combination gives a result ranging approx. from -10000 to 100000 or even more. Input data example: MySimulation (57, 78, 20, 10, 90, 50) = 300 <- Best Result MySimulation (50, 80, 10, 90, 35, 8) = 200 MySimulation (4, 55, 40, 99, 40, 50) = -50 <- Worst Result The higher the result the better the combination of numbers are, I already have the calculation which gives a result, I only need AI to

AI algorithm for multi dimension solution optimization / prediction

别等时光非礼了梦想. 提交于 2019-12-21 06:44:27
问题 I have 6 int parameters ranging from 0 to 100 The total combination of the numbers are 100^6 and each combination gives a result ranging approx. from -10000 to 100000 or even more. Input data example: MySimulation (57, 78, 20, 10, 90, 50) = 300 <- Best Result MySimulation (50, 80, 10, 90, 35, 8) = 200 MySimulation (4, 55, 40, 99, 40, 50) = -50 <- Worst Result The higher the result the better the combination of numbers are, I already have the calculation which gives a result, I only need AI to

SharpDX.SharpDXException when starting audio source - c#

☆樱花仙子☆ 提交于 2019-12-11 16:06:16
问题 When I'm trying to record audio using accord.net, it throws an exception Accord.Audio.DirectSound.pdb not loaded $exception {"HRESULT: [0x88780064], Module: [Unknown], ApiCode: [Unknown/Unknown], Message: Unknown"} SharpDX.SharpDXException I'm using Windows 10 Pro 64 bit with Visual Studio 2017. Accord.Audio - v3.8.0 Accord.Audio.DirectSound - v3.8.0 SharpDX -v2.6.3 SharpDX.DirectSound - v2.6.3 My code is here using Accord.DirectSound; using Accord.Audio; namespace TestAudio { public partial

Can't use Accord.NET

爷,独闯天下 提交于 2019-12-11 10:42:44
问题 I have Installed Accord.Net. But when I add "Accord.Math" as a reference then it shows "The referenced component 'Accord.Math' could not be found." I don't know why. Any one help me why showing this and how i solved it? 回答1: Did you follow the instructions in Getting Started for adding references ? You have to have the DLLs present in your project in order to be able to use them. 来源: https://stackoverflow.com/questions/14084482/cant-use-accord-net

Text classification NaiveBayes

↘锁芯ラ 提交于 2019-12-11 09:46:24
问题 I am trying to classify a series of text example News by category. I have huge dataset of news text with category in database. Machine should be trained and decide the news category. public static string[] Tokenize(string text) { StringBuilder sb = new StringBuilder(text); char[] invalid = "!-;':'\",.?\n\r\t".ToCharArray(); for (int i = 0; i < invalid.Length; i++) sb.Replace(invalid[i], ' '); return sb.ToString().Split(new[] { ' ' }, System.StringSplitOptions.RemoveEmptyEntries); } private

SVM with dynamic time warping kernel return error rate greater than 0

此生再无相见时 提交于 2019-12-09 02:16:27
I'm using Accord.net in my research. I have a vector sequences of variable size as input so I use DynamicTimeWarping as a kernel for MulticlassSupportVectorMachine. IKernel kernel = new DynamicTimeWarping(dimension); var machine = new MulticlassSupportVectorMachine(0, kernel, 2); // Create the Multi-class learning algorithm for the machine var teacher = new MulticlassSupportVectorLearning(machine, inputs.ToArray(), outputs.ToArray()); // Configure the learning algorithm to use SMO to train the // underlying SVMs in each of the binary class subproblems. teacher.Algorithm = (svm, classInputs,

SVM with dynamic time warping kernel return error rate greater than 0

北城余情 提交于 2019-12-08 07:04:52
问题 I'm using Accord.net in my research. I have a vector sequences of variable size as input so I use DynamicTimeWarping as a kernel for MulticlassSupportVectorMachine. IKernel kernel = new DynamicTimeWarping(dimension); var machine = new MulticlassSupportVectorMachine(0, kernel, 2); // Create the Multi-class learning algorithm for the machine var teacher = new MulticlassSupportVectorLearning(machine, inputs.ToArray(), outputs.ToArray()); // Configure the learning algorithm to use SMO to train

Accord.net Cobyla solver returns success when there are no feasiable solutions

不打扰是莪最后的温柔 提交于 2019-12-07 14:45:55
问题 I'm using Accord.Net's Cobyla solver to solve a rather simple non-linear problem. In some cases there will be no feasible points for the problem. When I run even a simple problem where the non-feasibility is obvious, the solver return "Success" even though the solution is not feasible. Consider the following example, written in F#: open System.Collection.Generics let obj12 = QuadraticObjectiveFunction("a - a*a"); let c12 = QuadraticConstraint(obj12, Array2D.zeroCreate 1 1, [| 10.0 |],