All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Functions | Variables
rating-perf.cc File Reference

rating付加の速度を測る More...

#include "osl/rating/featureSet.h"
#include "osl/rating/ratingEnv.h"
#include "osl/eval/progressEval.h"
#include "osl/effect_util/sendOffSquare.h"
#include "osl/effect_util/effectUtil.h"
#include "osl/record/csaRecord.h"
#include "osl/record/csaIOError.h"
#include "osl/stat/average.h"
#include "osl/misc/perfmon.h"
#include <boost/format.hpp>
#include <string>
#include <iostream>
#include <iomanip>
#include <cmath>
#include <cstdio>
Include dependency graph for rating-perf.cc:

Go to the source code of this file.

Functions

void usage (const char *prog)
 
void test_file (const FeatureSet &, const char *filename)
 
int main (int argc, char **argv)
 
void test_position (const FeatureSet &f, Move next_move, Move last_move, const RatingEnv &env, const NumEffectState &state)
 

Variables

size_t first_skip = 0
 
bool verbose = false
 
stat::Average moves
 
stat::Average cycles
 
stat::Average cycles_per_move
 
stat::Average probs
 
stat::Average order
 
stat::Average top_score
 
stat::Average selected_score
 
int min_selected = 1000
 
size_t num_positions = 0
 

Detailed Description

rating付加の速度を測る

Definition in file rating-perf.cc.

Function Documentation

int main ( int  argc,
char **  argv 
)
void test_file ( const FeatureSet f,
const char *  filename 
)
void test_position ( const FeatureSet f,
Move  next_move,
Move  last_move,
const RatingEnv env,
const NumEffectState &  state 
)
void usage ( const char *  prog)

Definition at line 25 of file rating-perf.cc.

Variable Documentation

stat::Average cycles

Definition at line 36 of file rating-perf.cc.

Referenced by osl::misc::PerfMon::stop().

stat::Average cycles_per_move

Definition at line 36 of file rating-perf.cc.

size_t first_skip = 0

Definition at line 33 of file rating-perf.cc.

Referenced by main(), test_file(), and test_record().

int min_selected = 1000

Definition at line 37 of file rating-perf.cc.

Referenced by main(), and test_position().

Definition at line 36 of file rating-perf.cc.

Referenced by osl::rating::BradleyTerry::accumulate(), osl::search::MoveGenerator::addCapture(), osl::record::NodeRecord::addMoveRecord(), osl::search::HashRejections::addRejection(), osl::search::HashRejections::addRejectionRoot(), osl::rating::BradleyTerry::addSquare(), osl::search::QuiescenceGenerator< P >::advanceBishop(), osl::search::AlphaBeta2< EvalT >::alphaBetaSearchRoot(), osl::checkmate::Dfpn::analyze(), analyzeCheckmate(), osl::checkmate::ProofTreeDepthDfpn::andNode(), osl::checkmate::FixedDepthSearcher2::attack(), osl::checkmate::FixedDepthSearcher::attack(), osl::ntesuki::NtesukiSimulationSearcher::attackForDisproof(), osl::ntesuki::NtesukiSearcher::attackWithOrder(), osl::ntesuki::NtesukiRecord::calcProofPiecesAnd(), osl::checkmate::CheckmateIfCapture::cannotCapture(), osl::search::QuiescenceGenerator< P >::capture(), check_all(), osl::search::HashRejections::clearRejection(), osl::search::HashRejections::clearRejectionRoot(), osl::search::AlphaBeta2< EvalT >::computeBestMoveIteratively(), convert(), osl::game_playing::UsiState::currentState(), osl::ntesuki::OracleProverLight::defense(), osl::checkmate::FixedDepthSearcher2::defense(), osl::checkmate::FixedDepthSearcher::defense(), osl::ntesuki::NtesukiSimulationSearcher::defenseForProof(), osl::ntesuki::NtesukiSearcher::defenseWithPlayer(), doMain(), osl::search::BigramKillerMove::dump(), osl::search::MoveGenerator::dump(), osl::search::QuiescenceGenerator< P >::escapeFromLastMove(), osl::search::QuiescenceSearch2< EvalT >::examineCapture(), osl::search::AlphaBeta2Tree< EvalT >::examineMovesRoot(), osl::search::QuiescenceSearch2< EvalT >::examineTakeBack2(), find_all(), find_bad_moves(), osl::ntesuki::NtesukiTable::Table::forEachRecordFrom(), osl::ntesuki::NtesukiMoveGenerator::generate(), osl::search::MoveGenerator::generateAll(), osl::search::AlphaBeta3::generateAllMoves(), osl::search::QuiescenceSearch2< EvalT >::generateAndExamineTakeBack2(), osl::search::MoveGenerator::generateBreakThreatmate(), osl::checkmate::Dfpn::generateCheck(), osl::checkmate::Dfpn::generateEscape(), osl::search::MoveGenerator::generateKingEscape(), osl::move_probability::FeatureSet::generateLogProb(), osl::move_probability::StandardFeatureSet::generateLogProb2(), osl::search::BreakThreatmate::generateOpenRoad(), osl::move_probability::FeatureSet::generateRating(), osl::rating::FeatureSet::generateRating(), osl::ntesuki::NtesukiMoveGenerator::generateSlow(), osl::search::MoveGenerator::generateTakeBack(), osl::search::MoveGenerator::generateTesuji(), osl::ntesuki::NtesukiMoveGenerator::generateWithRzone(), osl::ntesuki::NtesukiMoveGenerator::generateWithRzoneSlow(), osl::game_playing::UsiResponse::genmove(), osl::game_playing::UsiResponse::genmoveProbability(), osl::search::KillerMoveTable::getMove(), osl::search::BigramKillerMove::getMove(), osl::record::KisenFile::getMoves(), osl::record::opening::WinCountBook::getMoves(), osl::record::KisenPlusFile::getMoves(), osl::record::Record::getMoves(), osl::record::opening::WeightedBook::getMoves(), osl::record::opening::WeightedBook::getParents(), osl::record::KisenIpxFile::getPlayer(), osl::record::KisenIpxFile::getRating(), osl::record::opening::WeightedBook::getStateIndex(), osl::record::KisenIpxFile::getTitle(), osl::ntesuki::NtesukiSearcher::handleInterpose(), osl::ntesuki::NtesukiSearcher::handleNonAttack(), osl::state::HistoryState::history(), osl::search::MoveGenerator::init(), osl::game_playing::UsiState::isSuccessorOf(), osl::game_playing::UsiResponse::isValidPosition(), osl::game_playing::UsiResponse::ki2moves(), osl::game_playing::RecordTracer::kisenRecord(), osl::game_playing::GameManager::load(), main(), make_history(), osl::state::HistoryState::makeMove(), osl::annotate::CheckmateForCapture::match(), osl::annotate::CheckmateForEscape::match(), nextMoves(), osl::search::MoveGenerator::nextMoveWithGeneration(), osl::search::MoveGenerator::nextTacticalMoveWithGeneration(), osl::game_playing::UsiState::openFile(), osl::game_playing::UsiState::parseUsi(), osl::search::AlphaBeta3::presearch(), printNextMoves(), process(), osl::search::QuiescenceGenerator< P >::promote(), qsearch(), osl::search::MoveGenerator::quiesceCapture(), readFile(), osl::record::opening::BookInMemory::readRecursive(), osl::record::CheckDuplicate::regist(), osl::game_playing::GameState::rejectByStack(), osl::game_playing::UsiState::reset(), run(), osl::record::OKisenStream::save(), osl::record::KisenIpxWriter::save(), search(), Analyzer::search(), osl::search::QuiescenceSearch2< EvalT >::searchMain(), osl::search::AlphaBeta3::searchRoot(), osl::game_playing::SearchPlayer::secondsForThisMove(), osl::game_playing::RandomPlayer::selectBestMove(), osl::game_playing::RecordTracer::selectMove(), osl::game_playing::WinCountTracer::selectMove(), osl::game_playing::WeightTracer::selectMove(), osl::game_playing::DeterminateWeightTracer::selectMove(), osl::ntesuki::NtesukiRecord::setDisproofPieces(), osl::ntesuki::NtesukiRecord::setFinal(), osl::state::HistoryState::setRoot(), show(), show_moves(), showInfoOfState(), osl::ntesuki::NtesukiSearcher::simulateSiblingsFail(), osl::ntesuki::NtesukiSearcher::simulateSiblingsSuccess(), osl::search::QuiescenceSearch2< EvalT >::staticValueWithThreat(), store(), osl::record::KanjiMove::strToMove(), osl::search::QuiescenceSearch2< EvalT >::takeBackOrChase(), osl::search::QuiescenceSearch2< EvalT >::takeBackValue(), test_position(), osl::state::HistoryState::unmakeMove(), osl::state::HistoryState::unmakeMovePass(), osl::game_playing::RecordTracer::update(), osl::game_playing::WinCountTracer::update(), osl::state::HistoryState::update(), osl::game_playing::WeightTracer::update(), osl::record::usi::UsiFile::UsiFile(), usiMovesToPositionString(), osl::game_playing::UsiState::usiString(), and osl::record::opening::WeightedBook::validate().

size_t num_positions = 0

Definition at line 89 of file rating-perf.cc.

Referenced by test_position().

Definition at line 36 of file rating-perf.cc.

stat::Average selected_score

Definition at line 36 of file rating-perf.cc.

stat::Average top_score

Definition at line 36 of file rating-perf.cc.

bool verbose = false

Definition at line 34 of file rating-perf.cc.