Closed GoogleCodeExporter closed 9 years ago
I forgot to mention that i have a MulticlassSupportVectorMachine instead of a
normal one.
Original comment by koen...@gmail.com
on 24 Jul 2012 at 8:57
Thanks for the bug report. However, I believe the proper way of handling this
situation would be to catch the exception inside the fitting function
definition, and then return 0 to the Bootstrapping algorithm. Do you think this
solution would suffice?
Original comment by cesarso...@gmail.com
on 24 Jul 2012 at 3:05
I was thinking about what the proper way to handle this is, and I'm not quite
sure actually. Because if you return 0, it means that one cycle produced 0%
accuracy, where one could argue that you obtain 100% since classification is
trivial (everything is of the same class, so you cannot make any mistakes
really).
What do you think?
Original comment by koen...@gmail.com
on 24 Jul 2012 at 3:23
Indeed, returning 100% accuracy seems better.
Another possible solution would be to add a delegate function to check if a
sample is degenerate before running the learning algorithm. If the sample is
degenerate (such as have all labels positive or negative) then the
bootstrapping algorithm could try generating another sample. However this may
add some bias in the algorithm, since samples wouldn't be completely random
anymore. And this could also lead to problems in case it turns difficult to
generate a valid sample randomly.
Perhaps it would be better to report 100% for the time being. I will
investigate if there is a better approach. I am also open to suggestions.
Original comment by cesarso...@gmail.com
on 24 Jul 2012 at 4:07
Code has been updated, issue will be fixed on next release.
Original comment by cesarso...@gmail.com
on 2 Nov 2012 at 3:06
Fixed on Accord.NET 2.8.
Original comment by cesarso...@gmail.com
on 6 Nov 2012 at 5:23
Original issue reported on code.google.com by
koen...@gmail.com
on 23 Jul 2012 at 3:13