Darknet/YOLO  v2.0-219-g5d379a6
Object Detection Framework
go.cpp File Reference
Include dependency graph for go.cpp:

Classes

struct  moves
 

Macros

#define n_ind   5
 

Functions

char * fgetgo (FILE *fp)
 
moves load_go_moves (char *filename)
 
void string_to_board (char *s, float *board)
 
void board_to_string (char *s, float *board)
 
void random_go_moves (moves m, float *boards, float *labels, int n)
 
void train_go (char *cfgfile, char *weightfile)
 
void propagate_liberty (float *board, int *lib, int *visited, int row, int col, int side)
 
int * calculate_liberties (float *board)
 
void print_board (float *board, int swap, int *indexes)
 
void flip_board (float *board)
 
void predict_move (network net, float *board, float *move, int multi)
 
void remove_connected (float *b, int *lib, int p, int r, int c)
 
void move_go (float *b, int p, int r, int c)
 
int makes_safe_go (float *b, int *lib, int p, int r, int c)
 
int suicide_go (float *b, int p, int r, int c)
 
int legal_go (float *b, char *ko, int p, int r, int c)
 
int generate_move (network net, int player, float *board, int multi, float thresh, float temp, char *ko, int print)
 
void valid_go (char *cfgfile, char *weightfile, int multi)
 
void engine_go (char *filename, char *weightfile, int multi)
 
void test_go (char *cfg, char *weights, int multi)
 
float score_game (float *board)
 
void self_go (char *filename, char *weightfile, char *f2, char *w2, int multi)
 
void run_go (int argc, char **argv)
 

Variables

int inverted = 1
 
int noi = 1
 

Macro Definition Documentation

◆ n_ind

#define n_ind   5

Function Documentation

◆ fgetgo()

char* fgetgo ( FILE *  fp)
Here is the caller graph for this function:

◆ load_go_moves()

moves load_go_moves ( char *  filename)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ string_to_board()

void string_to_board ( char *  s,
float *  board 
)
Here is the caller graph for this function:

◆ board_to_string()

void board_to_string ( char *  s,
float *  board 
)
Here is the caller graph for this function:

◆ random_go_moves()

void random_go_moves ( moves  m,
float *  boards,
float *  labels,
int  n 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ train_go()

void train_go ( char *  cfgfile,
char *  weightfile 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ propagate_liberty()

void propagate_liberty ( float *  board,
int *  lib,
int *  visited,
int  row,
int  col,
int  side 
)
Here is the caller graph for this function:

◆ calculate_liberties()

int* calculate_liberties ( float *  board)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ print_board()

void print_board ( float *  board,
int  swap,
int *  indexes 
)
Here is the caller graph for this function:

◆ flip_board()

void flip_board ( float *  board)
Here is the caller graph for this function:

◆ predict_move()

void predict_move ( network  net,
float *  board,
float *  move,
int  multi 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ remove_connected()

void remove_connected ( float *  b,
int *  lib,
int  p,
int  r,
int  c 
)
Here is the caller graph for this function:

◆ move_go()

void move_go ( float *  b,
int  p,
int  r,
int  c 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ makes_safe_go()

int makes_safe_go ( float *  b,
int *  lib,
int  p,
int  r,
int  c 
)
Here is the caller graph for this function:

◆ suicide_go()

int suicide_go ( float *  b,
int  p,
int  r,
int  c 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ legal_go()

int legal_go ( float *  b,
char *  ko,
int  p,
int  r,
int  c 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ generate_move()

int generate_move ( network  net,
int  player,
float *  board,
int  multi,
float  thresh,
float  temp,
char *  ko,
int  print 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ valid_go()

void valid_go ( char *  cfgfile,
char *  weightfile,
int  multi 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ engine_go()

void engine_go ( char *  filename,
char *  weightfile,
int  multi 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_go()

void test_go ( char *  cfg,
char *  weights,
int  multi 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ score_game()

float score_game ( float *  board)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ self_go()

void self_go ( char *  filename,
char *  weightfile,
char *  f2,
char *  w2,
int  multi 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ run_go()

void run_go ( int  argc,
char **  argv 
)
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ inverted

int inverted = 1

◆ noi

int noi = 1