Relative Content

Tag Archive for accord.net

Issues with training a machine learning project in C# visual studio 2019

Im a student & new to C#
Could you help me to solve this problem?
I’ve to use LeastSquares regression or LSSVR and the Gaussian kernel.
There was an “Exception Unhandeld” occurd in my program while running it : System.NullReferenceException , Object reference not set to an instance of an object; It means that in the line where you use the support vector machine, the machine is not initialized correctly and an attempt is made to access a null object.
So I just checked and the result that appears in consule is:
“The machine has not been trained properly.”
But why? How can I fix this and train my machine properly?
my code: