#include "base/kaldi-common.h"
#include "util/common-utils.h"
#include "ivector/logistic-regression.h"
Go to the source code of this file.
Functions | |
int | ComputeLogPosteriors (ParseOptions &po, const LogisticRegressionConfig &config, bool apply_log) |
int32 | ComputeScores (ParseOptions &po, const LogisticRegressionConfig &config, bool apply_log) |
int | main (int argc, char *argv[]) |
int ComputeLogPosteriors | ( | ParseOptions & | po, |
const LogisticRegressionConfig & | config, | ||
bool | apply_log | ||
) |
Definition at line 27 of file logistic-regression-eval.cc.
References VectorBase< Real >::ApplyExp(), SequentialTableReader< Holder >::Done(), ParseOptions::GetArg(), LogisticRegression::GetLogPosteriors(), KALDI_LOG, SequentialTableReader< Holder >::Key(), SequentialTableReader< Holder >::Next(), kaldi::ReadKaldiObject(), SequentialTableReader< Holder >::Value(), and TableWriter< Holder >::Write().
Referenced by main().
int32 ComputeScores | ( | ParseOptions & | po, |
const LogisticRegressionConfig & | config, | ||
bool | apply_log | ||
) |
Definition at line 57 of file logistic-regression-eval.cc.
References MatrixBase< Real >::ApplyExp(), SequentialTableReader< Holder >::Done(), ParseOptions::GetArg(), LogisticRegression::GetLogPosteriors(), RandomAccessTableReader< Holder >::HasKey(), rnnlm::i, KALDI_LOG, KALDI_WARN, SequentialTableReader< Holder >::Key(), SequentialTableReader< Holder >::Next(), kaldi::ReadKaldiObject(), MatrixBase< Real >::Row(), RandomAccessTableReader< Holder >::Value(), and SequentialTableReader< Holder >::Value().
Referenced by main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 117 of file logistic-regression-eval.cc.
References ComputeLogPosteriors(), ComputeScores(), ParseOptions::NumArgs(), ParseOptions::PrintUsage(), ParseOptions::Read(), LogisticRegressionConfig::Register(), and ParseOptions::Register().