#include <featureSet.h>
Public Member Functions | |
StandardFeatureSet () | |
~StandardFeatureSet () | |
void | generateLogProb (const StateInfo &state, MoveLogProbVector &out) const |
void | generateLogProb2 (const StateInfo &state, MoveLogProbVector &out) const |
void | generateLogProb (const StateInfo &state, int limit, MoveLogProbVector &out, bool in_pv) const |
int | logProbTakeBack (const StateInfo &state, Move target) const |
int | logProbSeePlus (const StateInfo &state, Move target) const |
double | matchLight (const StateInfo &, Move) const |
double | matchExp (const StateInfo &, Move) const |
double | matchNoExp (const StateInfo &, Move) const |
bool | setUp (bool verbose=false) |
bool | ok () const |
![]() | |
~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 const StandardFeatureSet & | instance (bool verbose=false) |
static bool | healthCheck () |
![]() | |
static void | ratingToLogProb (const WeightedMoveVector &rating, double sum, MoveLogProbVector &out) |
Private Member Functions | |
int | tacticalLogProb (int offset, double sum) const |
Private Attributes | |
bool | initialized |
Static Private Attributes | |
static boost::scoped_array< double > | weights |
static boost::scoped_array< double > | tactical_weights |
Additional Inherited Members | |
![]() | |
FeatureSet () | |
Definition at line 50 of file move_probability/featureSet.h.
osl::move_probability::StandardFeatureSet::StandardFeatureSet | ( | ) |
Definition at line 217 of file featureSet_.cc.
References osl::move_probability::FeatureSet::addFinished(), osl::move_probability::FeatureSet::pushBack(), and ~StandardFeatureSet().
Referenced by osl::move_probability::FeatureSet::showSummary().
osl::move_probability::StandardFeatureSet::~StandardFeatureSet | ( | ) |
Definition at line 272 of file featureSet_.cc.
References instance().
Referenced by StandardFeatureSet().
void osl::move_probability::StandardFeatureSet::generateLogProb | ( | const StateInfo & | state, |
MoveLogProbVector & | out | ||
) | const |
Definition at line 331 of file featureSet_.cc.
References osl::move_probability::FeatureSet::generateLogProb(), generateLogProb2(), and weights.
Referenced by generateLogProb2(), and setUp().
void osl::move_probability::StandardFeatureSet::generateLogProb | ( | const StateInfo & | state, |
int | limit, | ||
MoveLogProbVector & | out, | ||
bool | in_pv | ||
) | const |
Definition at line 365 of file featureSet_.cc.
References generateLogProb2(), and matchLight().
void osl::move_probability::StandardFeatureSet::generateLogProb2 | ( | const StateInfo & | state, |
MoveLogProbVector & | out | ||
) | const |
Definition at line 337 of file featureSet_.cc.
References osl::FixedCapacityVector< T, Capacity >::begin(), osl::FixedCapacityVector< T, Capacity >::end(), generateLogProb(), osl::move_probability::FeatureSet::generateRating(), osl::eval::max(), osl::eval::min(), osl::container::MoveLogProbVector::push_back(), osl::FixedCapacityVector< T, Capacity >::size(), and weights.
Referenced by generateLogProb().
|
static |
Definition at line 286 of file featureSet_.cc.
References instance(), and ok().
Referenced by instance().
|
static |
Definition at line 278 of file featureSet_.cc.
References healthCheck(), and setUp().
Referenced by healthCheck(), and ~StandardFeatureSet().
int osl::move_probability::StandardFeatureSet::logProbSeePlus | ( | const StateInfo & | state, |
Move | target | ||
) | const |
Definition at line 397 of file featureSet_.cc.
References matchLight(), osl::move_probability::StateInfo::progress8(), and tacticalLogProb().
Referenced by logProbTakeBack().
int osl::move_probability::StandardFeatureSet::logProbTakeBack | ( | const StateInfo & | state, |
Move | target | ||
) | const |
Definition at line 389 of file featureSet_.cc.
References logProbSeePlus(), matchLight(), osl::move_probability::StateInfo::progress8(), and tacticalLogProb().
Referenced by matchNoExp().
double osl::move_probability::StandardFeatureSet::matchExp | ( | const StateInfo & | state, |
Move | move | ||
) | const |
Definition at line 377 of file featureSet_.cc.
References osl::move_probability::FeatureSet::matchExp(), matchNoExp(), and weights.
Referenced by matchLight().
double osl::move_probability::StandardFeatureSet::matchLight | ( | const StateInfo & | state, |
Move | move | ||
) | const |
Definition at line 371 of file featureSet_.cc.
References matchExp(), osl::move_probability::FeatureSet::matchLight(), and weights.
Referenced by generateLogProb(), logProbSeePlus(), and logProbTakeBack().
double osl::move_probability::StandardFeatureSet::matchNoExp | ( | const StateInfo & | state, |
Move | move | ||
) | const |
Definition at line 383 of file featureSet_.cc.
References logProbTakeBack(), osl::move_probability::FeatureSet::matchNoExp(), and weights.
Referenced by matchExp().
|
inline |
Definition at line 69 of file move_probability/featureSet.h.
Referenced by healthCheck().
bool osl::move_probability::StandardFeatureSet::setUp | ( | bool | verbose = false | ) |
Definition at line 299 of file featureSet_.cc.
References osl::move_probability::FeatureSet::dimension(), generateLogProb(), osl::OslConfig::home(), initialized, osl::move_probability::FeatureSet::load_binary(), osl::move_probability::standardfeatureset_lock, tactical_weights, and weights.
Referenced by instance().
|
private |
Definition at line 405 of file featureSet_.cc.
References osl::eval::max(), and tactical_weights.
Referenced by logProbSeePlus(), and logProbTakeBack().
|
private |
Definition at line 53 of file move_probability/featureSet.h.
Referenced by setUp().
|
staticprivate |
Definition at line 52 of file move_probability/featureSet.h.
Referenced by setUp(), osl::move_probability::FeatureSet::showSummary(), and tacticalLogProb().
|
staticprivate |
Definition at line 52 of file move_probability/featureSet.h.
Referenced by generateLogProb(), generateLogProb2(), matchExp(), matchLight(), matchNoExp(), setUp(), and osl::move_probability::FeatureSet::showSummary().