| | |
| | | |
| | | void train_go(char *cfgfile, char *weightfile) |
| | | { |
| | | data_seed = time(0); |
| | | srand(time(0)); |
| | | float avg_loss = -1; |
| | | char *base = basecfg(cfgfile); |
| | |
| | | char buff[256]; |
| | | float *board = calloc(19*19*net.batch, sizeof(float)); |
| | | float *move = calloc(19*19*net.batch, sizeof(float)); |
| | | moves m = load_go_moves("/home/pjreddie/go.train"); |
| | | moves m = load_go_moves("/home/pjreddie/backup/go.train"); |
| | | //moves m = load_go_moves("games.txt"); |
| | | |
| | | int N = m.n; |
| | |
| | | |
| | | void valid_go(char *cfgfile, char *weightfile, int multi) |
| | | { |
| | | data_seed = time(0); |
| | | srand(time(0)); |
| | | char *base = basecfg(cfgfile); |
| | | printf("%s\n", base); |