#include <featureSet.h>
Public Member Functions | |
StandardFeatureSet (bool allow_load_failure=false) | |
![]() | |
FeatureSet () | |
virtual | ~FeatureSet () |
bool | tryLoad (const std::string &input_directory) |
void | setWeight (size_t feature_id, const double &value) |
const Group & | group (size_t group_id) const |
bool | effectiveInCheck (size_t group_id) const |
const Feature & | feature (size_t feature_id) const |
const range_t & | range (size_t group) const |
const double & | weight (size_t feature_id) const |
size_t | groupSize () const |
size_t | featureSize () const |
const RatedMove | makeRate (const NumEffectState &state, bool in_check, const RatingEnv &env, Move move) const |
const RatedMove | makeRateWithCut (const NumEffectState &state, bool in_check, const RatingEnv &env, int limit, Move move) const |
const std::string | annotate (const NumEffectState &state, const RatingEnv &env, Move move) const |
void | generateRating (const NumEffectState &state, const RatingEnv &env, int limit, RatedMoveVector &out, bool in_pv_or_all=true) const |
void | generateLogProb (const NumEffectState &state, const RatingEnv &env, int limit, MoveLogProbVector &out, bool in_pv_or_all=true) const |
int | logProbTakeBack (const NumEffectState &state, const RatingEnv &env, Move) const |
int | logProbSeePlus (const NumEffectState &state, const RatingEnv &env, Move) const |
int | logProbKingEscape (const NumEffectState &state, const RatingEnv &env, Move) const |
void | showGroup (std::ostream &, size_t group_id) const |
void | save (const std::string &output_directory, size_t group_id) const |
void | showStatistics (std::ostream &) const |
Static Public Member Functions | |
static const StandardFeatureSet & | instance () |
static bool | healthCheck () |
![]() | |
static void | normalize (const RatedMoveVector &, MoveLogProbVector &out) |
static std::string | defaultDirectory () |
Additional Inherited Members | |
![]() | |
void | add (Feature *f) |
void | add (Group *g) |
void | add (CaptureGroup *g) |
void | add (SendOffGroup *g) |
void | add (CheckmateIfCaptureGroup *g) |
void | addCommon (Group *g) |
void | addFinished () |
Definition at line 99 of file rating/featureSet.h.
|
explicit |
Definition at line 680 of file featureSet.cc.
References osl::rating::FeatureSet::add(), osl::rating::FeatureSet::addFinished(), osl::BISHOP, osl::D, osl::rating::FeatureSet::defaultDirectory(), osl::DL, osl::DR, osl::OslConfig::home(), instance(), osl::L, osl::LANCE, osl::R, osl::ROOK, osl::rating::FeatureSet::tryLoad(), osl::U, osl::UL, osl::UR, osl::UUL, and osl::UUR.
Referenced by osl::rating::FeatureSet::defaultDirectory().
|
static |
Definition at line 771 of file featureSet.cc.
References osl::rating::CaptureSet::CaptureSet(), and osl::rating::FeatureSet::defaultDirectory().
|
static |
Definition at line 765 of file featureSet.cc.
Referenced by StandardFeatureSet().