Skip to content

Commit

Permalink
Merge pull request #14 from lenguyenthedat/fix-weighted-vote
Browse files Browse the repository at this point in the history
Fix weighted vote by adding correct sample files
  • Loading branch information
lenguyenthedat committed Nov 16, 2017
2 parents 03eb63b + 83a5ae9 commit d8824f2
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Expand Up @@ -23,14 +23,15 @@ For more information: http://mlwave.com/kaggle-ensembling-guide/
parsing: ./samples/method3.csv
wrote to ./samples/kaggle_vote.csv

$ python ./src/kaggle_vote.py "./samples/_*.csv" "./samples/kaggle_vote.csv" "weighted"

$ python ./src/kaggle_vote.py "./samples/_*.csv" "./samples/kaggle_vote_weighted.csv" "weighted"
parsing: ./samples/_w3_method1.csv
Using weight: 3
parsing: ./samples/_w2_method2.csv
Using weight: 2
parsing: ./samples/_w2_method3.csv
Using weight: 2
wrote to ./samples/kaggle_vote.csv
wrote to ./samples/kaggle_vote_weighted.csv

$ python ./src/kaggle_rankavg.py "./samples/method*.csv" "./samples/kaggle_rankavg.csv"
parsing: ./samples/method1.csv
Expand Down
6 changes: 6 additions & 0 deletions samples/_w2_method2.csv
@@ -0,0 +1,6 @@
ImageId,Label
1,3
4,2
3,6
5,3
2,0
6 changes: 6 additions & 0 deletions samples/_w2_method3.csv
@@ -0,0 +1,6 @@
ImageId,Label
1,2
3,9
2,0
5,3
4,2
6 changes: 6 additions & 0 deletions samples/_w3_method1.csv
@@ -0,0 +1,6 @@
ImageId,Label
5,3
2,0
3,5
4,9
1,1
6 changes: 6 additions & 0 deletions samples/kaggle_vote_weighted.csv
@@ -0,0 +1,6 @@
ImageId,Label
1,1
2,0
3,5
4,2
5,3

0 comments on commit d8824f2

Please sign in to comment.