io-chess
UCI chess engine
Loading...
Searching...
No Matches
FactorizedFeatureExtractor Class Reference

#include <FactorizedFeatureExtractor.hpp>

Public Types

enum  BranchIndex {
  US_PAWN = 0 , US_KNIGHT , US_BISHOP , US_ROOK ,
  US_QUEEN , US_KING , THEM_PAWN , THEM_KNIGHT ,
  THEM_BISHOP , THEM_ROOK , THEM_QUEEN , THEM_KING
}
enum  PlaneIndex {
  PRESENCE = 0 , MOBILITY = 1 , ATTACKS = 2 , DEFENDS = 3 ,
  X_RAY = 4
}
enum  BypassIndex {
  US_KING_DIST = 0 , THEM_KING_DIST = 1 , US_PAWN_ATTACKS = 2 , THEM_PAWN_ATTACKS = 3 ,
  TOTAL_CONTROL = 4 , ABSOLUTE_PINS = 5 , EN_PRISE = 6 , SAFE_MOBILITY_MAP = 7 ,
  KING_RING_MAP = 8 , PASSED_PAWN_MAP = 9 , OUTPOST_MAP = 10 , OPEN_LINES_MAP = 11
}
enum  GlobalIndices {
  US_MAT_PAWN = 0 , THEM_MAT_PAWN , US_MAT_KNIGHT , THEM_MAT_KNIGHT ,
  US_MAT_BISHOP , THEM_MAT_BISHOP , US_MAT_ROOK , THEM_MAT_ROOK ,
  US_MAT_QUEEN , THEM_MAT_QUEEN , US_OO , US_OOO ,
  THEM_OO , THEM_OOO , PHASE , US_BISHOP_PAIR ,
  THEM_BISHOP_PAIR , OPPOSITE_BISHOPS , US_ROOK_VS_MINORS , THEM_ROOK_VS_MINORS ,
  IS_WHITE_TO_MOVE
}

Static Public Member Functions

static void fill_input (const chess::Board &board, FactorizedInput &out)
static void fill_input_rich (const chess::Board &board, FactorizedInput &out)

Static Public Attributes

static constexpr int NUM_PAWN_PLANES = 4
static constexpr int NUM_KNIGHT_PLANES = 4
static constexpr int NUM_BISHOP_PLANES = 5
static constexpr int NUM_ROOK_PLANES = 5
static constexpr int NUM_QUEEN_PLANES = 5
static constexpr int NUM_KING_PLANES = 4
static constexpr int PLANES_PER_TYPE [6]
static constexpr int NUM_BRANCH_PLANES_RICH = FactorizedInput::MAX_BRANCH_PLANES
static constexpr int NUM_BYPASS_PLANES = 12

Member Enumeration Documentation

◆ BranchIndex

Enumerator
US_PAWN 
US_KNIGHT 
US_BISHOP 
US_ROOK 
US_QUEEN 
US_KING 
THEM_PAWN 
THEM_KNIGHT 
THEM_BISHOP 
THEM_ROOK 
THEM_QUEEN 
THEM_KING 

◆ BypassIndex

Enumerator
US_KING_DIST 
THEM_KING_DIST 
US_PAWN_ATTACKS 
THEM_PAWN_ATTACKS 
TOTAL_CONTROL 
ABSOLUTE_PINS 
EN_PRISE 
SAFE_MOBILITY_MAP 
KING_RING_MAP 
PASSED_PAWN_MAP 
OUTPOST_MAP 
OPEN_LINES_MAP 

◆ GlobalIndices

Enumerator
US_MAT_PAWN 
THEM_MAT_PAWN 
US_MAT_KNIGHT 
THEM_MAT_KNIGHT 
US_MAT_BISHOP 
THEM_MAT_BISHOP 
US_MAT_ROOK 
THEM_MAT_ROOK 
US_MAT_QUEEN 
THEM_MAT_QUEEN 
US_OO 
US_OOO 
THEM_OO 
THEM_OOO 
PHASE 
US_BISHOP_PAIR 
THEM_BISHOP_PAIR 
OPPOSITE_BISHOPS 
US_ROOK_VS_MINORS 
THEM_ROOK_VS_MINORS 
IS_WHITE_TO_MOVE 

◆ PlaneIndex

Enumerator
PRESENCE 
MOBILITY 
ATTACKS 
DEFENDS 
X_RAY 

Member Function Documentation

◆ fill_input()

void FactorizedFeatureExtractor::fill_input ( const chess::Board & board,
FactorizedInput & out )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ fill_input_rich()

void FactorizedFeatureExtractor::fill_input_rich ( const chess::Board & board,
FactorizedInput & out )
static
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ NUM_BISHOP_PLANES

int FactorizedFeatureExtractor::NUM_BISHOP_PLANES = 5
staticconstexpr

◆ NUM_BRANCH_PLANES_RICH

int FactorizedFeatureExtractor::NUM_BRANCH_PLANES_RICH = FactorizedInput::MAX_BRANCH_PLANES
staticconstexpr

◆ NUM_BYPASS_PLANES

int FactorizedFeatureExtractor::NUM_BYPASS_PLANES = 12
staticconstexpr

◆ NUM_KING_PLANES

int FactorizedFeatureExtractor::NUM_KING_PLANES = 4
staticconstexpr

◆ NUM_KNIGHT_PLANES

int FactorizedFeatureExtractor::NUM_KNIGHT_PLANES = 4
staticconstexpr

◆ NUM_PAWN_PLANES

int FactorizedFeatureExtractor::NUM_PAWN_PLANES = 4
staticconstexpr

◆ NUM_QUEEN_PLANES

int FactorizedFeatureExtractor::NUM_QUEEN_PLANES = 5
staticconstexpr

◆ NUM_ROOK_PLANES

int FactorizedFeatureExtractor::NUM_ROOK_PLANES = 5
staticconstexpr

◆ PLANES_PER_TYPE

int FactorizedFeatureExtractor::PLANES_PER_TYPE[6]
staticconstexpr
Initial value:
= {
}
static constexpr int NUM_KNIGHT_PLANES
Definition FactorizedFeatureExtractor.hpp:83
static constexpr int NUM_BISHOP_PLANES
Definition FactorizedFeatureExtractor.hpp:84
static constexpr int NUM_ROOK_PLANES
Definition FactorizedFeatureExtractor.hpp:85
static constexpr int NUM_KING_PLANES
Definition FactorizedFeatureExtractor.hpp:91
static constexpr int NUM_QUEEN_PLANES
Definition FactorizedFeatureExtractor.hpp:88
static constexpr int NUM_PAWN_PLANES
Definition FactorizedFeatureExtractor.hpp:82

The documentation for this class was generated from the following files: