From 1298918014a303a86d0944f834b01f7385b15632 Mon Sep 17 00:00:00 2001 From: David Snyder Date: Mon, 3 Mar 2014 06:48:10 +0000 Subject: [PATCH] sandbox/language_id: Adding logistic-regression.conf config file, for setting max_steps and normalizer for the classifier. git-svn-id: https://svn.code.sf.net/p/kaldi/code/sandbox/language_id@3660 5e6a8d80-dfce-4ca6-a32a-6e07a63d50c8 --- egs/lre/v1/conf/logistic-regression.conf | 2 ++ egs/lre/v1/run_logistic_regression.sh | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 egs/lre/v1/conf/logistic-regression.conf diff --git a/egs/lre/v1/conf/logistic-regression.conf b/egs/lre/v1/conf/logistic-regression.conf new file mode 100644 index 000000000..2eaab6576 --- /dev/null +++ b/egs/lre/v1/conf/logistic-regression.conf @@ -0,0 +1,2 @@ +--max-steps=20 +--normalizer=0.002 diff --git a/egs/lre/v1/run_logistic_regression.sh b/egs/lre/v1/run_logistic_regression.sh index 130b64497..633ebbc27 100755 --- a/egs/lre/v1/run_logistic_regression.sh +++ b/egs/lre/v1/run_logistic_regression.sh @@ -10,7 +10,7 @@ set -e mfccdir=`pwd`/mfcc vaddir=`pwd`/mfcc - +config=conf/logistic-regression.conf awk '{print $2}' data/train/utt2lang | sort -u | \ awk '{print $1, NR-1}' > exp/ivectors_train/languages.txt @@ -23,7 +23,8 @@ train_ivectors=exp/ivectors_train/ivector.scp classes="ark:utils/sym2int.pl -f 2 exp/ivectors_train/languages.txt data/train/utt2lang|" . path.sh -logistic-regression-train scp:$train_ivectors "$classes" $model 2>$log +logistic-regression-train --config=$config scp:$train_ivectors \ + "$classes" $model 2>$log posterior_output=posteriors scores=posteriors