diff options
author | Tetsuo Kiso <tetsuo-s@is.naist.jp> | 2012-02-01 11:51:25 +0400 |
---|---|---|
committer | Tetsuo Kiso <tetsuo-s@is.naist.jp> | 2012-02-01 11:51:25 +0400 |
commit | 2a7d2a395f2c3b00efc69c6ef54c2ac5d8476e17 (patch) | |
tree | 9fe0593eb6cb0b73d6184530f6878a30872e1fbb /mert/mert.cpp | |
parent | 79fd25d0c448dbe935a1577a97435d3006ce8035 (diff) |
Use a constant instead of hard-coding.
Diffstat (limited to 'mert/mert.cpp')
-rwxr-xr-x | mert/mert.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mert/mert.cpp b/mert/mert.cpp index 5114185cd..335b5c7ea 100755 --- a/mert/mert.cpp +++ b/mert/mert.cpp @@ -35,6 +35,9 @@ const char kDefaultScorerFile[] = "statscore.data"; const char kDefaultFeatureFile[] = "features.data"; const char kDefaultInitFile[] = "init.opt"; +// Used when saving optimized weights. +const char kOutputFile[] = "weights.txt"; + /** * Runs an optimisation, or a random restart. */ @@ -470,7 +473,7 @@ int main(int argc, char **argv) } cerr << "Best point: " << finalP << " => " << final << endl; - ofstream res("weights.txt"); + ofstream res(kOutputFile); res << finalP << endl; for (size_t i = 0; i < allTasks.size(); ++i) { |