Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- examples = "List of all 400 examples"
- accuracies = Empty list
- for(i=0; i<|examples|; i++) {
- one = examples[i]
- training = examples {one}
- # !!!!!!!!!!!!!!!!!!!!!!!!!
- majority_clf = get majority in training. This is the other class than the class of "one"
- # !!!!!!!!!!!!!!!!!!!!!!
- accuracies.append(majority_clf(one) == class(one))
- }
- overall_accuracy = sum(accuracies) / |accuracies|
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement