#include <Point.h>
Public Member Functions | |
| Point () | |
| Point (const std::vector< parameter_t > &init, const std::vector< parameter_t > &min, const std::vector< parameter_t > &max) | |
| ~Point () | |
| void | Randomize () |
| double | operator* (const FeatureStats &) const |
| const Point | operator+ (const Point &) const |
| void | operator+= (const Point &) |
| const Point | operator* (float) const |
| void | Normalize () |
| void | NormalizeL2 () |
| void | NormalizeL1 () |
| void | GetAllWeights (std::vector< parameter_t > &w) const |
| statscore_t | GetScore () const |
| void | SetScore (statscore_t score) |
Static Public Member Functions | |
| static unsigned int | getdim () |
| static void | setdim (std::size_t d) |
| static unsigned int | getpdim () |
| static void | setpdim (std::size_t pd) |
| static void | set_optindices (const std::vector< unsigned int > &indices) |
| static const std::vector < unsigned int > & | get_optindices () |
| static bool | OptimizeAll () |
Friends | |
| class | Optimizer |
| std::ostream & | operator<< (std::ostream &o, const Point &P) |
Definition at line 20 of file Point.h.
| MosesTuning::Point::Point | ( | const std::vector< parameter_t > & | init, | |
| const std::vector< parameter_t > & | min, | |||
| const std::vector< parameter_t > & | max | |||
| ) |
| static const std::vector<unsigned int>& MosesTuning::Point::get_optindices | ( | ) | [inline, static] |
| void MosesTuning::Point::GetAllWeights | ( | std::vector< parameter_t > & | w | ) | const |
Return a vector of size m_pdim where all weights have been put (including fixed ones).
Referenced by MosesTuning::operator<<().

| static unsigned int MosesTuning::Point::getdim | ( | ) | [inline, static] |
Definition at line 56 of file Point.h.
Referenced by MosesTuning::Optimizer::LineOptimize(), and MosesTuning::SimpleOptimizer::TrueRun().

| static unsigned int MosesTuning::Point::getpdim | ( | ) | [inline, static] |
| statscore_t MosesTuning::Point::GetScore | ( | ) | const [inline] |
Definition at line 113 of file Point.h.
Referenced by BOOST_AUTO_TEST_CASE(), MosesTuning::Optimizer::Run(), MosesTuning::RandomDirectionOptimizer::TrueRun(), and MosesTuning::SimpleOptimizer::TrueRun().

| void MosesTuning::Point::Normalize | ( | ) | [inline] |
Definition at line 101 of file Point.h.
References NormalizeL2().

| void MosesTuning::Point::NormalizeL1 | ( | ) |
| void MosesTuning::Point::NormalizeL2 | ( | ) |
Definition at line 124 of file Point.cpp.
Referenced by Normalize().

| const Point MosesTuning::Point::operator* | ( | float | l | ) | const |
| double MosesTuning::Point::operator* | ( | const FeatureStats & | F | ) | const |
Definition at line 65 of file Point.cpp.
References MosesTuning::FeatureStats::get(), and OptimizeAll().

| void MosesTuning::Point::operator+= | ( | const Point & | p2 | ) |
| static bool MosesTuning::Point::OptimizeAll | ( | ) | [inline, static] |
Definition at line 78 of file Point.h.
Referenced by operator*().

| void MosesTuning::Point::Randomize | ( | ) |
Definition at line 56 of file Point.cpp.
References util::rand_incl(), and UTIL_THROW_IF.
Referenced by MosesTuning::RandomOptimizer::TrueRun(), MosesTuning::RandomDirectionOptimizer::TrueRun(), and MosesTuning::SimpleOptimizer::TrueRun().


| static void MosesTuning::Point::set_optindices | ( | const std::vector< unsigned int > & | indices | ) | [inline, static] |
| static void MosesTuning::Point::setdim | ( | std::size_t | d | ) | [inline, static] |
| static void MosesTuning::Point::setpdim | ( | std::size_t | pd | ) | [inline, static] |
| void MosesTuning::Point::SetScore | ( | statscore_t | score | ) | [inline] |
Definition at line 116 of file Point.h.
Referenced by MosesTuning::Optimizer::LineOptimize(), MosesTuning::Optimizer::Run(), and MosesTuning::RandomOptimizer::TrueRun().

| std::ostream& operator<< | ( | std::ostream & | o, | |
| const Point & | P | |||
| ) | [friend] |
Write the Whole featureweight to a stream (ie m_pdim float).
1.5.9