Go to the documentation of this file.
3 #ifndef OSL_MOVE_PROBABILITY_FEATURESET_H
4 #define OSL_MOVE_PROBABILITY_FEATURESET_H
9 #include <boost/ptr_container/ptr_vector.hpp>
10 #include <boost/scoped_array.hpp>
15 namespace move_probability
39 bool load(
const char *base_filename,
double *weights)
const;
40 bool load_binary(
const char *base_filename,
double *weights)
const;
68 bool setUp(
bool verbose=
false);
double matchNoExp(const StateInfo &, Move, const double *weights) const
static const StandardFeatureSet & instance(bool verbose=false)
void analyze(const StateInfo &state, Move move, const double *weights) const
bool load(const char *base_filename, double *weights) const
static boost::scoped_array< double > tactical_weights
double matchLight(const StateInfo &, Move) const
static void ratingToLogProb(const WeightedMoveVector &rating, double sum, MoveLogProbVector &out)
double matchNoExp(const StateInfo &, Move) const
double matchExp(const StateInfo &, Move) const
double matchLight(const StateInfo &, Move, const double *weights) const
boost::ptr_vector< Feature > features
int tacticalLogProb(int offset, double sum) const
std::pair< double, Move > WeightedMove
void showSummary(const double *weights) const
int logProbTakeBack(const StateInfo &state, Move target) const
int logProbSeePlus(const StateInfo &state, Move target) const
bool setUp(bool verbose=false)
std::vector< int > light_features
double generateRating(const StateInfo &state, WeightedMoveVector &out, const double *weights) const
void generateLogProb(const StateInfo &state, MoveLogProbVector &out) const
FixedCapacityVector< WeightedMove, Move::MaxUniqMoves > WeightedMoveVector
void generateLogProb2(const StateInfo &state, MoveLogProbVector &out) const
double matchExp(const StateInfo &, Move, const double *weights) const
void generateLogProb(const StateInfo &state, MoveLogProbVector &out, const double *weights) const
static boost::scoped_array< double > weights
std::vector< int > offsets
static bool healthCheck()
bool load_binary(const char *base_filename, double *weights) const
void pushBack(Feature *, bool light=false)