QuestionsForKey is a class used to define the questions for a key, and also options that allow us to refine the question during tree-building (i.e. More...
#include <build-tree-questions.h>
Public Member Functions | |
QuestionsForKey (int32 num_iters=5) | |
void | Check () const |
void | Write (std::ostream &os, bool binary) const |
void | Read (std::istream &is, bool binary) |
Public Attributes | |
std::vector< std::vector< EventValueType > > | initial_questions |
RefineClustersOptions | refine_opts |
QuestionsForKey is a class used to define the questions for a key, and also options that allow us to refine the question during tree-building (i.e.
make a question specific to the location in the tree). The Questions class handles aggregating these options for a set of different keys.
Definition at line 50 of file build-tree-questions.h.
|
inline |
Definition at line 56 of file build-tree-questions.h.
Referenced by Questions::SetQuestionsOf().
|
inline |
Definition at line 63 of file build-tree-questions.h.
References rnnlm::i, kaldi::IsSorted(), KALDI_ASSERT, QuestionsForKey::Read(), and QuestionsForKey::Write().
Referenced by Questions::SetQuestionsOf().
void Read | ( | std::istream & | is, |
bool | binary | ||
) |
Definition at line 37 of file build-tree-questions.cc.
References kaldi::ExpectToken(), rnnlm::i, QuestionsForKey::initial_questions, RefineClustersOptions::Read(), kaldi::ReadBasicType(), kaldi::ReadIntegerVector(), and QuestionsForKey::refine_opts.
Referenced by QuestionsForKey::Check(), Questions::Questions(), and Questions::Read().
void Write | ( | std::ostream & | os, |
bool | binary | ||
) | const |
Definition at line 27 of file build-tree-questions.cc.
References rnnlm::i, QuestionsForKey::initial_questions, QuestionsForKey::refine_opts, RefineClustersOptions::Write(), kaldi::WriteBasicType(), kaldi::WriteIntegerVector(), and kaldi::WriteToken().
Referenced by QuestionsForKey::Check(), Questions::Questions(), and Questions::Write().
std::vector<std::vector<EventValueType> > initial_questions |
Definition at line 52 of file build-tree-questions.h.
Referenced by kaldi::ComputeInitialSplit(), main(), QuestionsForKey::Read(), kaldi::TestBuildTree(), kaldi::TestQuestionsInitRand(), kaldi::TestSplitDecisionTree(), and QuestionsForKey::Write().
RefineClustersOptions refine_opts |
Definition at line 53 of file build-tree-questions.h.
Referenced by kaldi::FindBestSplitForKey(), Questions::InitRand(), QuestionsForKey::Read(), and QuestionsForKey::Write().