20 #ifndef KALDI_IVECTOR_LOGISTIC_REGRESSION_H_ 21 #define KALDI_IVECTOR_LOGISTIC_REGRESSION_H_ 37 normalizer(0.0025), power(0.15){ }
39 opts->
Register(
"max-steps", &max_steps,
40 "Maximum steps in L-BFGS.");
41 opts->
Register(
"normalizer", &normalizer,
42 "Coefficient for L2 regularization.");
44 "Target number of mixture components to create, " 47 "Power rule for determining the number of mixtures " 71 void Write(std::ostream &os,
bool binary)
const;
72 void Read(std::istream &is,
bool binary);
89 const std::vector<int32> &ys,
96 void MixUp(
const std::vector<int32> &ys,
const int32 &num_classes,
103 const std::vector<int32> &ys,
110 const std::vector<int32> classes);
This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
virtual void Register(const std::string &name, bool *ptr, const std::string &doc)=0
LogisticRegressionConfig()
void Register(OptionsItf *opts)
A class representing a vector.
std::vector< int32 > class_
Matrix< BaseFloat > weights_
void UnitTestPosteriors()