MosesTuning::AvgWeightVector Class Reference

#include <MiraWeightVector.h>

Collaboration diagram for MosesTuning::AvgWeightVector:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 AvgWeightVector (const MiraWeightVector &wv)
ValType score (const MiraFeatureVector &fv) const
ValType weight (std::size_t index) const
std::size_t size () const
void ToSparse (SparseVector *sparse, size_t num_dense) const


Detailed Description

Averaged view of a weight vector

Definition at line 100 of file MiraWeightVector.h.


Constructor & Destructor Documentation

MosesTuning::AvgWeightVector::AvgWeightVector ( const MiraWeightVector wv  ) 

Definition at line 140 of file MiraWeightVector.cpp.


Member Function Documentation

ValType MosesTuning::AvgWeightVector::score ( const MiraFeatureVector fv  )  const

Definition at line 167 of file MiraWeightVector.cpp.

References MosesTuning::MiraFeatureVector::feat(), MosesTuning::MiraFeatureVector::size(), MosesTuning::MiraFeatureVector::val(), and weight().

Referenced by MosesTuning::NbestHopeFearDecoder::MaxModel().

Here is the call graph for this function:

Here is the caller graph for this function:

size_t MosesTuning::AvgWeightVector::size (  )  const

Definition at line 176 of file MiraWeightVector.cpp.

Referenced by ToSparse().

Here is the caller graph for this function:

void MosesTuning::AvgWeightVector::ToSparse ( SparseVector sparse,
size_t  num_dense 
) const

Definition at line 181 of file MiraWeightVector.cpp.

References MosesTuning::SparseVector::set(), size(), and weight().

Here is the call graph for this function:

ValType MosesTuning::AvgWeightVector::weight ( std::size_t  index  )  const

Referenced by score(), and ToSparse().

Here is the caller graph for this function:


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

Generated on Thu Jul 6 00:34:18 2017 for Moses by  doxygen 1.5.9