25 #ifndef KALDI_MATRIX_OPTIMIZATION_H_ 26 #define KALDI_MATRIX_OPTIMIZATION_H_ 49 recompute_residual_factor(0.01) { }
62 template<
typename Real>
110 first_step_learning_rate(1.0),
111 first_step_length(0.0),
112 first_step_impr(0.0),
116 max_line_search_iters(50),
117 avg_step_length(4) { }
120 template<
typename Real>
142 Real RecentStepLength()
const;
150 void DoStep(Real function_value,
157 void DoStep(Real function_value,
188 bool AcceptStep(Real function_value,
193 void ComputeNewDirection(Real function_value,
196 void StepSizeIteration(Real function_value,
198 void RecordStepLength(Real s);
This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
Packed symetric matrix class.
std::vector< Real > step_lengths_
ComputationState computation_state_
int max_line_search_iters
float first_step_learning_rate
A class for storing matrices.
#define KALDI_DISALLOW_COPY_AND_ASSIGN(type)
BaseFloat recompute_residual_factor
LbfgsOptions(bool minimize=true)
SubVector< Real > S(MatrixIndexT i)
int num_wolfe_ii_failures_
int num_wolfe_i_failures_
SubVector< Real > Y(MatrixIndexT i)
A class representing a vector.
int32 LinearCgd(const LinearCgdOptions &opts, const SpMatrix< Real > &A, const VectorBase< Real > &b, VectorBase< Real > *x)
ComputationState
"compute p_k <-- - H_k \delta f_k" (i.e. Algorithm 7.4).
This is an implementation of L-BFGS.
Provides a vector abstraction class.
Represents a non-allocating general vector which can be defined as a sub-vector of higher-level vecto...
const VectorBase< Real > & GetProposedValue() const
This returns the value at which the function wants us to compute the objective function and gradient...