Answer the question
In order to leave comments, you need to log in
Why does an exception occur in accord.net in C#?
The code:
var teacher = new RandomForestLearning()
{
NumberOfTrees = 10, // use 10 trees in the forest
};
var forest = teacher.Learn(input, output);//Exception
Answer the question
In order to leave comments, you need to log in
Well, for starters, it’s worth saying what kind of exception occurs.
And so - by the link we look at the source and at least we see:
public RandomForest Learn(double[][] x, int[] y, double[] weights = null)
{
if (weights != null)
throw new ArgumentException(Accord.Properties.Resources.NotSupportedWeights, "weights");
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question