code space용 설정 파일 추가
mutation 설정 - 특정 확률로 파티클의 위치를 랜덤하게 방향 조정
This commit is contained in:
jung-geun
2023-07-06 20:46:38 +09:00
parent 9aab259970
commit 4170100bd1
6 changed files with 74 additions and 15 deletions

View File

@@ -90,7 +90,7 @@ class Optimizer:
negative_count += 1
print(f"negative swarm : {negative_count} / {self.n_particles}")
print(f"mutation swarm : {mutation_swarm*100/self.n_particles} / {self.n_particles}")
print(f"mutation swarm : {mutation_swarm * self.n_particles} / {self.n_particles}")
gc.collect()