Skip to content

Instantly share code, notes, and snippets.

@limzunyuan
Created January 29, 2016 16:36
Show Gist options
  • Save limzunyuan/baf947bddaea11fa0a79 to your computer and use it in GitHub Desktop.
Save limzunyuan/baf947bddaea11fa0a79 to your computer and use it in GitHub Desktop.
% 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