small fixes

This commit is contained in:
Filip Gralinski 2015-10-27 12:56:17 +01:00
parent 085ef0ec9e
commit e55708a8f0
3 changed files with 15 additions and 10 deletions

View File

@ -9,8 +9,8 @@ machine learning algorithms are available here.
## Installing ## Installing
You need [Haskell Stack](https://github.com/commercialhaskell/stack), You need [Haskell Stack](https://github.com/commercialhaskell/stack).
then install GEval with: When you've got Haskell Stack, install GEval with:
git clone https://github.com/filipg/geval git clone https://github.com/filipg/geval
cd geval cd geval
@ -100,11 +100,11 @@ repo (for the toy “planets” challenge) could be created as follows:
git commit -m 'init challenge' git commit -m 'init challenge'
git remote add origin git@github.com:filipg/planets git remote add origin git@github.com:filipg/planets
git push origin master git push origin master
git branch dont-peek-here git branch dont-peek
git checkout dont-peek-here git checkout dont-peek
git add test-A/expected.tsv git add test-A/expected.tsv
git commit -m 'with expected results' git commit -m 'with expected results'
git push origin dont-peek-here git push origin dont-peek
## Taking up a Gonito challenge ## Taking up a Gonito challenge
@ -134,7 +134,7 @@ If you'd like and if you have access to the test set results, you can
“cheat” and check the results for the test set: “cheat” and check the results for the test set:
cd .. cd ..
git clone https://github.com/filipg/planets planets-secret --branch dont-peek-here git clone https://github.com/filipg/planets planets-secret --branch dont-peek
cd planets cd planets
geval --expected-directory ../planets-secret geval --expected-directory ../planets-secret

View File

@ -1,5 +1,5 @@
name: geval name: geval
version: 0.1.1.0 version: 0.1.1.1
synopsis: Machine learning evaluation tools synopsis: Machine learning evaluation tools
description: Please see README.md description: Please see README.md
homepage: http://github.com/name/project homepage: http://github.com/name/project

View File

@ -91,9 +91,14 @@ Directory structure
|] |]
configContents :: Metric -> String -> String configContents :: Metric -> String -> String
configContents metric testName = [i| configContents metric testName = "--metric " ++
--metric ${show metric} --test-name ${testName} (show metric) ++
|] (if testName /= defaultTestName
then
" --test-name " ++ testName
else
"")
trainContents :: Metric -> String trainContents :: Metric -> String
trainContents BLEU = [hereLit|alussa loi jumala taivaan ja maan he mea hanga na te atua i te timatanga te rangi me te whenua trainContents BLEU = [hereLit|alussa loi jumala taivaan ja maan he mea hanga na te atua i te timatanga te rangi me te whenua