#include <featureSet.h>
Public Member Functions | |
| ~FeatureSet () | |
| void | pushBack (Feature *, bool light=false) |
| void | addFinished () |
| int | dimension () const |
| double | matchExp (const StateInfo &, Move, const double *weights) const |
| double | matchNoExp (const StateInfo &, Move, const double *weights) const |
| void | generateLogProb (const StateInfo &state, MoveLogProbVector &out, const double *weights) const |
| double | matchLight (const StateInfo &, Move, const double *weights) const |
| bool | load (const char *base_filename, double *weights) const |
| bool | load_binary (const char *base_filename, double *weights) const |
| void | showSummary (const double *weights) const |
| void | analyze (const StateInfo &state, Move move, const double *weights) const |
| double | generateRating (const StateInfo &state, WeightedMoveVector &out, const double *weights) const |
Static Public Member Functions | |
| static void | ratingToLogProb (const WeightedMoveVector &rating, double sum, MoveLogProbVector &out) |
Protected Member Functions | |
| FeatureSet () | |
Private Attributes | |
| boost::ptr_vector< Feature > | features |
| std::vector< int > | offsets |
| std::vector< int > | light_features |
Definition at line 21 of file move_probability/featureSet.h.
|
protected |
Definition at line 23 of file featureSet_.cc.
References ~FeatureSet().
| osl::move_probability::FeatureSet::~FeatureSet | ( | ) |
| void osl::move_probability::FeatureSet::addFinished | ( | ) |
Definition at line 41 of file featureSet_.cc.
References matchNoExp().
Referenced by pushBack(), and osl::move_probability::StandardFeatureSet::StandardFeatureSet().
| void osl::move_probability::FeatureSet::analyze | ( | const StateInfo & | state, |
| Move | move, | ||
| const double * | weights | ||
| ) | const |
Definition at line 81 of file featureSet_.cc.
References features, generateRating(), offsets, and osl::csa::show().
Referenced by dimension(), and matchLight().
|
inline |
Definition at line 31 of file move_probability/featureSet.h.
References analyze(), generateLogProb(), generateRating(), load(), load_binary(), matchExp(), matchLight(), matchNoExp(), ratingToLogProb(), and showSummary().
Referenced by load(), load_binary(), and osl::move_probability::StandardFeatureSet::setUp().
| void osl::move_probability::FeatureSet::generateLogProb | ( | const StateInfo & | state, |
| MoveLogProbVector & | out, | ||
| const double * | weights | ||
| ) | const |
Definition at line 135 of file featureSet_.cc.
References generateRating(), load(), and ratingToLogProb().
Referenced by dimension(), osl::move_probability::StandardFeatureSet::generateLogProb(), and ratingToLogProb().
| double osl::move_probability::FeatureSet::generateRating | ( | const StateInfo & | state, |
| WeightedMoveVector & | out, | ||
| const double * | weights | ||
| ) | const |
Definition at line 103 of file featureSet_.cc.
References osl::move_probability::StateInfo::dirty, osl::NumEffectState::generateLegal(), matchExp(), osl::FixedCapacityVector< T, Capacity >::push_back(), ratingToLogProb(), and osl::move_probability::StateInfo::state.
Referenced by analyze(), dimension(), generateLogProb(), and osl::move_probability::StandardFeatureSet::generateLogProb2().
| bool osl::move_probability::FeatureSet::load | ( | const char * | base_filename, |
| double * | weights | ||
| ) | const |
Definition at line 144 of file featureSet_.cc.
References dimension(), and load_binary().
Referenced by dimension(), and generateLogProb().
| bool osl::move_probability::FeatureSet::load_binary | ( | const char * | base_filename, |
| double * | weights | ||
| ) | const |
Definition at line 161 of file featureSet_.cc.
References dimension(), and showSummary().
Referenced by dimension(), load(), and osl::move_probability::StandardFeatureSet::setUp().
| double osl::move_probability::FeatureSet::matchExp | ( | const StateInfo & | state, |
| Move | move, | ||
| const double * | weights | ||
| ) | const |
Definition at line 62 of file featureSet_.cc.
References matchLight(), and matchNoExp().
Referenced by dimension(), generateRating(), osl::move_probability::StandardFeatureSet::matchExp(), and matchNoExp().
| double osl::move_probability::FeatureSet::matchLight | ( | const StateInfo & | state, |
| Move | move, | ||
| const double * | weights | ||
| ) | const |
Definition at line 68 of file featureSet_.cc.
References analyze(), features, light_features, and offsets.
Referenced by dimension(), matchExp(), and osl::move_probability::StandardFeatureSet::matchLight().
| double osl::move_probability::FeatureSet::matchNoExp | ( | const StateInfo & | state, |
| Move | move, | ||
| const double * | weights | ||
| ) | const |
Definition at line 50 of file featureSet_.cc.
References features, matchExp(), and offsets.
Referenced by addFinished(), dimension(), matchExp(), and osl::move_probability::StandardFeatureSet::matchNoExp().
| void osl::move_probability::FeatureSet::pushBack | ( | Feature * | f, |
| bool | light = false |
||
| ) |
Definition at line 33 of file featureSet_.cc.
References addFinished().
Referenced by osl::move_probability::StandardFeatureSet::StandardFeatureSet(), and ~FeatureSet().
|
static |
Definition at line 120 of file featureSet_.cc.
References generateLogProb(), osl::eval::max(), osl::container::MoveLogProbVector::push_back(), and osl::container::MoveLogProbVector::sortByProbability().
Referenced by dimension(), generateLogProb(), and generateRating().
| void osl::move_probability::FeatureSet::showSummary | ( | const double * | weights | ) | const |
Definition at line 180 of file featureSet_.cc.
References osl::move_probability::Feature::dimension(), features, osl::eval::max(), osl::eval::min(), osl::move_probability::Feature::name(), offsets, osl::move_probability::StandardFeatureSet::StandardFeatureSet(), osl::move_probability::StandardFeatureSet::tactical_weights, and osl::move_probability::StandardFeatureSet::weights.
Referenced by dimension(), and load_binary().
|
private |
Definition at line 23 of file move_probability/featureSet.h.
Referenced by analyze(), matchLight(), matchNoExp(), and showSummary().
|
private |
Definition at line 24 of file move_probability/featureSet.h.
Referenced by matchLight().
|
private |
Definition at line 24 of file move_probability/featureSet.h.
Referenced by analyze(), matchLight(), matchNoExp(), and showSummary().
1.8.13