Training
Training algorithms for Crocrodile NN.
Basics
Crocrodile Training.
Back to basics.
- author
Virinas-code and ZeBox
- class crocrodile.nn.basics_train.BasicsTrain[source]
Basics train - class for training Crocrodile.
- Author
@ZeBox and Virinas-code
- ask() dict[source]
Ask for inputs.
- Parameters
self (BasicsTrain) – Current BasicsTrain object.
- Returns
Good moves file.
- Return type
str
- couple(matrix1: numpy.ndarray, matrix2: numpy.ndarray) numpy.ndarray[source]
Couple two matrixes.
- Parameters
matrix1 (numpy.ndarray) – First matrix to couple.
matrix2 (numpy.ndarray) – Second matrix to couple.
- Returns
A new matrix.
- Return type
numpy.ndarray
- couple_networks(worst_network: int, network1: int, network2: int) None[source]
Couple two networks.
- Parameters
network1 (int) – First network indice
network2 (int) – Second network indice.
- Returns
Nothing.
- Return type
None.
- couple_pawns(matrix1: numpy.ndarray, matrix2: numpy.ndarray) numpy.ndarray[source]
Couple two pawn matrixes.
- Parameters
matrix1 (numpy.ndarray) – First matrix to couple.
matrix2 (numpy.ndarray) – Second matrix to couple.
- Returns
A new matrix.
- Return type
numpy.ndarray
- couple_pieces(matrix1: numpy.ndarray, matrix2: numpy.ndarray) numpy.ndarray[source]
Couple two pieces matrixes.
- Parameters
matrix1 (numpy.ndarray) – First matrix to couple.
matrix2 (numpy.ndarray) – Second matrix to couple.
- Returns
A new matrix.
- Return type
numpy.ndarray
- static generate_bad_moves(good_move_pos: str, good_moves_list, bad_moves_list)[source]
Generate bad moves for position.
- Parameters
good_move_pos (str) – Good move in position (FEN + good move)