遗传算法

This commit is contained in:
Cricial
2026-03-15 17:15:30 +08:00
parent 03ac80715f
commit a69e272e43
27 changed files with 934 additions and 191 deletions

View File

@@ -328,7 +328,7 @@ class ControllerDB:
)).scalar()
# 控制 n_sample数量 作为后面的参数
n_sample = 0 if res is None else res
# print(f'There are a total of {n_sample} samples.')
print(f'There are a total of {n_sample} samples.')
# 查找 is_done_flag = -1 也就是没有运行的 样本 运行后会改为0
res = db_session.execute(
text(f"SELECT id FROM {self.db_name_prefix}_sample "