The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
"What happens when X-validation creates partition with no positive examples?"
If a dataset is skewed, then positive and negative example sets are not be balanced in size. Skew is common when trying to learn a detector of rare events, for example.
Suppose that the data set has only 1 positive example. Then cross validation can produce only one training subset that has a positive example; the others will have no positive examples. What will happen? What do RapidMiner Models do when trained without a positive example?
I'm asking because I'm seeing a Java Exception in model training that I've traced back to an XVal partition with no positive examples.
Is there a way to detect the situation and skip training in this case?
Thanks,
Gary
Tagged:
0
Answers
probably the models can't do anything about it: Without examples of both classes you can't learn to separate them. Only few algorithms for the "one-class" case exist, the one-class SVM is one of them. But I don't know what the LibSVM implementation will do if there is really only one class.
As far as I see, you have only two options:
- Trying the bootstrapping operator to multiply your positive examples, so that the learner has examples in each XValidation fold.
- Alternativly you could extract the positive examples and add it to each training data. The following process would use that, but keep in mind,
that you undermine the goal of performance estimation, since you then will have a part of your training data in the test set, too... Greetings,
Sebastian