began naive random government. need to look into speeding up the deliberation process.


Former-commit-id: 8f15b121db83938759d1513aecbfba0333ce0ad6
benchmarked various implementations.


Former-commit-id: 4351f4c49df10c8a7fca968f632797fc0e8d70d8
rewrote naive random_gov to take advantage of data.table and parallelization.


Former-commit-id: 9a50806c478e6a1e243c539aa317d0cc6e80d4c5
changed internal distance calculation to include base::dist(), and added vanilla accuracy gauge to trainRandomHouse().


Former-commit-id: 8761263814738a180fb1e34d9410685d7272ec5e
fixed error in training function, and made benchmarking function.


Former-commit-id: 1b13cc8efa09f906210ae481bb1c45851889c631
cleaned up dt_centric_random_gov for use on grizzlybear.


Former-commit-id: d06d7ae6fbe274ea340bb91b66c4cafa0924dd6c
implemented metascore-based elections and testRandomHouse function, and updated benchmark function accordingly.


Former-commit-id: 9971c7fcab329895e9ab778beae766da5f5ff1d0
cleaned up dt_centric_... for use on grizzlybear, and allowed for different methods in base::dist() to be used.


Former-commit-id: 94baf84eab4b05244cbe9bde6e74a578c0443489
merged in changes to load_data from master.

Merge branch 'master' into random_gov

Conflicts:
	R/load_data.R

Former-commit-id: b2a563418fde466b43a07b7a2114c1d6aad11770
made a serial, knn-based implementation of random_gov. Need to rework metascore to something like maximum likelihood.


Former-commit-id: 3e9b5b7e37a63b81a7737fa74d85c6e8f9a34e10
revamped metascoring to allow for "proportions" to be used in elections. (proportions are just estimates of P(Y=k | Psi(X)=k).)


Former-commit-id: 18344b82671f822aa2c5f505b9e09528b5c3f867
changed probMetaScoreWinner to sample according to the approximate posterior likelihoods -- does not help accuracy.


Former-commit-id: 68dec253c7751b76f46251bc67ad5b1bcf3c8ed3
implemented selective government build which tries to make one committee per lable, with posterior likelihood greater than a desired threshold.


Former-commit-id: 0f0c7a7408c837fd523173265bc2959a0ef0d50d
tidy'd up code, and added class.width parameter to selectiveBuildRoutine.


Former-commit-id: 87765c18347d86df04651c385eb0cc1667440485
did some minor refactoring of buildRandomGov to allow for variable class.width.


Former-commit-id: 8c3f8793043edf56b48616966b030a67245eaf95
implemented "binary" distance in knn prediction, and allowed for sampling with replacement inside buildRandomGov. Setup argument matching for "method" and "dist" arguments.


Former-commit-id: 6fd77e295b1193e5eb4eca76cf9a20c8195f77e3
wrapped up selectiveBuildTrainPredict into buildTrainPredict and cleaned up issues related to trainRandomGov.


Former-commit-id: 9c76fbb7dc369d7c4c3a747a057d5c6e8532959a
added foreach() capability in predict...


Former-commit-id: 8e472a7c510ff9c1aef4537282772dafd680ddbf
set.seeds wherever sample() is used to ensure reproducibility, and implemented cross-validation scheme for "vanilla" voting method with parallelization options at the various levels.


Former-commit-id: 33d2c25bb284b0b2a245923d9571df7d3f8ce3d9
prepared cross-validation script for use on grizzlybear.


Former-commit-id: 2810472df6992e71aeccc5af54efbb55ee8a54aa