diff options
| author | Peng Wu <alexepico@gmail.com> | 2011-07-29 14:13:42 +0800 |
|---|---|---|
| committer | Peng Wu <alexepico@gmail.com> | 2011-07-29 14:13:42 +0800 |
| commit | b6afd6c828dae6d11718e85e3e9aca60158664f0 (patch) | |
| tree | 90d2c108906f56786943432fc8e81fccf576a1f2 | |
| parent | 9907d860802ea03319ca283f0e7f4737765c5513 (diff) | |
| download | trainer-b6afd6c828dae6d11718e85e3e9aca60158664f0.tar.gz trainer-b6afd6c828dae6d11718e85e3e9aca60158664f0.tar.xz trainer-b6afd6c828dae6d11718e85e3e9aca60158664f0.zip | |
add lambda value output to evaluate.py
| -rwxr-xr-x | evaluate.py | 1 | ||||
| -rw-r--r-- | lib/myconfig.py | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/evaluate.py b/evaluate.py index 0e99abb..ad3ea4e 100755 --- a/evaluate.py +++ b/evaluate.py @@ -167,6 +167,7 @@ if __name__ == '__main__': print('estimating') reportfile = os.path.join(trydir, 'estimate' + config.getReportPostfix()) avg_lambda = estimateModel(reportfile) + print('average lambda:', avg_lambda) cwdstatus['EvaluateAverageLambda'] = avg_lambda utils.store_status(cwdstatuspath, cwdstatus) diff --git a/lib/myconfig.py b/lib/myconfig.py index a5f4eec..4fa31d3 100644 --- a/lib/myconfig.py +++ b/lib/myconfig.py @@ -62,7 +62,7 @@ class MyConfig: #the trained corpus size of model candidates def getCandidateModelSize(self): - candidate_model_size = 11.9 * 1024 * 1024 * 3 + candidate_model_size = 11.9 * 1024 * 1024 * 2 return candidate_model_size def getModelPostfix(self): |
