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.
- Paramètres
self (BasicsTrain) – Current BasicsTrain object.
- Renvoie
Good moves file.
- Type renvoyé
str
-
couple
(matrix1: numpy.ndarray, matrix2: numpy.ndarray) → numpy.ndarray[source]¶ Couple two matrixes.
- Paramètres
matrix1 (numpy.ndarray) – First matrix to couple.
matrix2 (numpy.ndarray) – Second matrix to couple.
- Renvoie
A new matrix.
- Type renvoyé
numpy.ndarray
-
couple_networks
(worst_network: int, network1: int, network2: int) → None[source]¶ Couple two networks.
- Paramètres
network1 (int) – First network indice
network2 (int) – Second network indice.
- Renvoie
Nothing.
- Type renvoyé
None.
-
couple_pawns
(matrix1: numpy.ndarray, matrix2: numpy.ndarray) → numpy.ndarray[source]¶ Couple two pawn matrixes.
- Paramètres
matrix1 (numpy.ndarray) – First matrix to couple.
matrix2 (numpy.ndarray) – Second matrix to couple.
- Renvoie
A new matrix.
- Type renvoyé
numpy.ndarray
-
couple_pieces
(matrix1: numpy.ndarray, matrix2: numpy.ndarray) → numpy.ndarray[source]¶ Couple two pieces matrixes.
- Paramètres
matrix1 (numpy.ndarray) – First matrix to couple.
matrix2 (numpy.ndarray) – Second matrix to couple.
- Renvoie
A new matrix.
- Type renvoyé
numpy.ndarray
-
static
generate_bad_moves
(good_move_pos: str, good_moves_list, bad_moves_list)[source]¶ Generate bad moves for position.
- Paramètres
good_move_pos (str) – Good move in position (FEN + good move)