Classification ZeroR and OneR
Classification ZeroR and OneR
Classification ZeroR and OneR
1. Data cleaning: In this dataset there is no noise or inconsistent data therefore no need to clean it.
6. Pattern evaluation: I classified this dataset on WEKA using ZeroR and OneR classifiers.
Classifier: OneR
Comparison the accuracy of the classifiers
I got the best accuracy with class label gender and classification algorithm OneR, which is 0.029.
ZeroR
ZeroR is the simplest classification method which relies on the target and ignores all predictors. ZeroR classifier
simply predicts the majority category (class). Although there is no predictability power in ZeroR, it is useful for
determining a baseline performance as a benchmark for other classification methods.
Construct a frequency table for the target and select its most frequent value. There is nothing to be said about
the predictors contribution to the model because ZeroR does not use any of them. ZeroR only predicts the
majority class correctly. As mentioned before, ZeroR is only useful for determining a baseline performance for
other classification methods.
OneR
OneR, short for "One Rule", is a simple, yet accurate, classification algorithm that generates one rule for each
predictor in the data, then selects the rule with the smallest total error as its "one rule". To create a rule for a
predictor, we construct a frequency table for each predictor against the target. It has been shown that OneR
produces rules only slightly less accurate than state-of-the-art classification algorithms while producing rules that
are simple for humans to interpret.
OneR Algorithm
When we compare the ZeroR and OneR algorithms; ZeroR classifier simply predicts the majority category,
OneR generates one rule for each predictor in the data, then selects the rule with the smallest total error. OneR
model is better than ZeroR model for prediction therefore OneR will have better accuracy.