Public Member Functions | |
PushSpecialClass (VectorFst< StdArc > *fst, float delta) | |
Private Types | |
typedef StdArc | Arc |
typedef Arc::Weight | Weight |
typedef Arc::StateId | StateId |
Private Member Functions | |
double | TestAccuracy () |
void | Iterate (float delta) |
void | ModifyFst () |
Private Attributes | |
StateId | num_states_ |
StateId | initial_state_ |
std::vector< double > | occ_ |
double | lambda_ |
std::vector< std::vector< std::pair< StateId, double > > > | pred_ |
VectorFst< StdArc > * | fst_ |
Definition at line 86 of file push-special.cc.
Definition at line 87 of file push-special.cc.
|
private |
Definition at line 89 of file push-special.cc.
|
private |
Definition at line 88 of file push-special.cc.
|
inline |
Definition at line 93 of file push-special.cc.
References kaldi::Exp(), PushSpecialClass::fst_, PushSpecialClass::initial_state_, PushSpecialClass::Iterate(), PushSpecialClass::ModifyFst(), PushSpecialClass::num_states_, PushSpecialClass::occ_, and PushSpecialClass::pred_.
|
inlineprivate |
Definition at line 143 of file push-special.cc.
References rnnlm::i, rnnlm::j, KALDI_VLOG, KALDI_WARN, PushSpecialClass::lambda_, PushSpecialClass::num_states_, PushSpecialClass::occ_, PushSpecialClass::pred_, and PushSpecialClass::TestAccuracy().
Referenced by PushSpecialClass::PushSpecialClass().
|
inlineprivate |
Definition at line 188 of file push-special.cc.
References PushSpecialClass::fst_, PushSpecialClass::initial_state_, KALDI_ISINF, KALDI_ISNAN, KALDI_WARN, kaldi::Log(), PushSpecialClass::num_states_, PushSpecialClass::occ_, and fst::Times().
Referenced by PushSpecialClass::PushSpecialClass().
|
inlineprivate |
Definition at line 116 of file push-special.cc.
References kaldi::Exp(), PushSpecialClass::fst_, PushSpecialClass::initial_state_, KALDI_VLOG, kaldi::Log(), PushSpecialClass::num_states_, and PushSpecialClass::occ_.
Referenced by PushSpecialClass::Iterate().
|
private |
Definition at line 219 of file push-special.cc.
Referenced by PushSpecialClass::ModifyFst(), PushSpecialClass::PushSpecialClass(), and PushSpecialClass::TestAccuracy().
|
private |
Definition at line 211 of file push-special.cc.
Referenced by PushSpecialClass::ModifyFst(), PushSpecialClass::PushSpecialClass(), and PushSpecialClass::TestAccuracy().
|
private |
Definition at line 213 of file push-special.cc.
Referenced by PushSpecialClass::Iterate().
|
private |
Definition at line 210 of file push-special.cc.
Referenced by PushSpecialClass::Iterate(), PushSpecialClass::ModifyFst(), PushSpecialClass::PushSpecialClass(), and PushSpecialClass::TestAccuracy().
|
private |
Definition at line 212 of file push-special.cc.
Referenced by PushSpecialClass::Iterate(), PushSpecialClass::ModifyFst(), PushSpecialClass::PushSpecialClass(), and PushSpecialClass::TestAccuracy().
|
private |
Definition at line 215 of file push-special.cc.
Referenced by PushSpecialClass::Iterate(), and PushSpecialClass::PushSpecialClass().