Created
January 29, 2016 16:36
-
-
Save limzunyuan/baf947bddaea11fa0a79 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% Returns the mode of the binary_targets (either 0 or 1) | |
function [majority_value] = majority_value(binary_targets) | |
majority_value = mode(binary_targets); | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment