Classes | Functions | Variables
go.c File Reference
#include "network.h"
#include "utils.h"
#include "parser.h"
#include "option_list.h"
#include "blas.h"
Include dependency graph for go.c:

Go to the source code of this file.

Classes

struct  moves

Functions

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

Variables

int inverted = 1
static const int nind = 5
int noi = 1

Function Documentation

void board_to_string ( char *  s,
float *  board 
)

Definition at line 74 of file go.c.

int* calculate_liberties ( float *  board)

Definition at line 187 of file go.c.

void engine_go ( char *  filename,
char *  weightfile,
int  multi 
)

Definition at line 433 of file go.c.

char* fgetgo ( FILE *  fp)

Definition at line 20 of file go.c.

void flip_board ( float *  board)

Definition at line 253 of file go.c.

int generate_move ( network  net,
int  player,
float *  board,
int  multi,
float  thresh,
float  temp,
char *  ko,
int  print 
)

Definition at line 350 of file go.c.

int legal_go ( float *  b,
char *  ko,
int  p,
int  r,
int  c 
)

Definition at line 337 of file go.c.

moves load_go_moves ( char *  filename)

Definition at line 33 of file go.c.

int makes_safe_go ( float *  b,
int *  lib,
int  p,
int  r,
int  c 
)

Definition at line 314 of file go.c.

void move_go ( float *  b,
int  p,
int  r,
int  c 
)

Definition at line 303 of file go.c.

void predict_move ( network  net,
float *  board,
float *  move,
int  multi 
)

Definition at line 261 of file go.c.

void print_board ( float *  board,
int  swap,
int *  indexes 
)

Definition at line 207 of file go.c.

void propagate_liberty ( float *  board,
int *  lib,
int *  visited,
int  row,
int  col,
int  side 
)

Definition at line 172 of file go.c.

void random_go_moves ( moves  m,
float *  boards,
float *  labels,
int  n 
)

Definition at line 91 of file go.c.

void remove_connected ( float *  b,
int *  lib,
int  p,
int  r,
int  c 
)

Definition at line 290 of file go.c.

void run_go ( int  argc,
char **  argv 
)

Definition at line 813 of file go.c.

float score_game ( float *  board)

Definition at line 699 of file go.c.

void self_go ( char *  filename,
char *  weightfile,
char *  f2,
char *  w2,
int  multi 
)

Definition at line 735 of file go.c.

void string_to_board ( char *  s,
float *  board 
)

Definition at line 55 of file go.c.

int suicide_go ( float *  b,
int  p,
int  r,
int  c 
)

Definition at line 325 of file go.c.

void test_go ( char *  cfg,
char *  weights,
int  multi 
)

Definition at line 602 of file go.c.

void train_go ( char *  cfgfile,
char *  weightfile 
)

Definition at line 117 of file go.c.

void valid_go ( char *  cfgfile,
char *  weightfile,
int  multi 
)

Definition at line 401 of file go.c.


Variable Documentation

int inverted = 1

Definition at line 11 of file go.c.

const int nind = 5 [static]

Definition at line 13 of file go.c.

int noi = 1

Definition at line 12 of file go.c.



rail_object_detector
Author(s):
autogenerated on Sat Jun 8 2019 20:26:31