交叉配对
初始化
1 | class Crossover(object): |
run函数
1 | def run(self): |
1 | def _initialize_kernel(self): |
判断该拼图块是否合理 is_valid_piece
1 | def _is_valid_piece(self, piece_id): |
返回其子代
1 | def child(self): |
1 | class Crossover(object): |
1 | def run(self): |
1 | def _initialize_kernel(self): |
1 | def _is_valid_piece(self, piece_id): |
1 | def child(self): |