This class describes the options for maximizing various quadratic objective functions. More...

#include <sp-matrix.h>

Collaboration diagram for SolverOptions:

Public Member Functions

 SolverOptions (const std::string &name)
 
 SolverOptions ()
 
void Check () const
 

Public Attributes

BaseFloat K
 
BaseFloat eps
 
std::string name
 
bool optimize_delta
 
bool diagonal_precondition
 
bool print_debug_output
 

Detailed Description

This class describes the options for maximizing various quadratic objective functions.

It's mostly as described in the SGMM paper "the subspace Gaussian mixture model &ndash; a structured model for speech recognition", but the diagonal_precondition option is newly added, to handle problems where different dimensions have very different scaling (we recommend to use the option but it's set false for back compatibility).

Definition at line 443 of file sp-matrix.h.

Constructor & Destructor Documentation

◆ SolverOptions() [1/2]

SolverOptions ( const std::string &  name)
inlineexplicit

Definition at line 450 of file sp-matrix.h.

450  :
451  K(1.0e+4), eps(1.0e-40), name(name),
453  print_debug_output(true) { }
std::string name
Definition: sp-matrix.h:446

◆ SolverOptions() [2/2]

SolverOptions ( )
inline

Definition at line 454 of file sp-matrix.h.

References kaldi::SolveDoubleQuadraticMatrixProblem(), kaldi::SolveQuadraticMatrixProblem(), and kaldi::SolveQuadraticProblem().

454  : K(1.0e+4), eps(1.0e-40), name("[unknown]"),
456  print_debug_output(true) { }
std::string name
Definition: sp-matrix.h:446

Member Function Documentation

◆ Check()

void Check ( ) const

Definition at line 631 of file sp-matrix.cc.

References SolverOptions::eps, SolverOptions::K, and KALDI_ASSERT.

Referenced by kaldi::SolveQuadraticMatrixProblem(), and kaldi::SolveQuadraticProblem().

631  {
632  KALDI_ASSERT(K>10 && eps<1.0e-10);
633 }
#define KALDI_ASSERT(cond)
Definition: kaldi-error.h:185

Member Data Documentation

◆ diagonal_precondition

◆ eps

◆ K

◆ name

◆ optimize_delta

bool optimize_delta

◆ print_debug_output

bool print_debug_output

The documentation for this struct was generated from the following files: