更新iiabmdb_basic_info.sql
This commit is contained in:
parent
ebc8159bf8
commit
66e40a1250
File diff suppressed because it is too large
Load Diff
|
@ -6,5 +6,6 @@
|
|||
<file url="file://$PROJECT_DIR$/SQL_db_user_create.sql" dialect="MySQL" />
|
||||
<file url="file://$PROJECT_DIR$/SQL_export_high_risk_setting.sql" dialect="MySQL" />
|
||||
<file url="file://$PROJECT_DIR$/SQL_migrate_db.sql" dialect="MySQL" />
|
||||
<file url="file://$PROJECT_DIR$/iiabmdb_basic_info.sql" dialect="MySQL" />
|
||||
</component>
|
||||
</project>
|
|
@ -13,13 +13,13 @@
|
|||
1. 将*conf_db_prefix.yaml*文件中的*db_prefix*改为*db_name_prefix: without_exp*
|
||||
2. 打开命令行,进入代码所在目录,运行
|
||||
```shell
|
||||
python main.py --exp without_exp --reset_db True
|
||||
python main.py --exp without_exp --job 6 --reset_db True
|
||||
```
|
||||
3. 等待运行完成(77.5个样本)。结束后,将*db_name_prefix: without_exp*改为*db_name_prefix: with_exp*,并运行
|
||||
3. 等待运行完成(1.2万个样本)。结束后,将*db_name_prefix: without_exp*改为*db_name_prefix: with_exp*,并运行
|
||||
```shell
|
||||
python main.py --exp with_exp --reset_db True
|
||||
python main.py --exp with_exp --job 6 --reset_db True
|
||||
```
|
||||
4. 漫长的等待(万个样本),直到运行完成
|
||||
4. 漫长的等待(3.4万个样本),直到运行完成
|
||||
|
||||
## 获得结果,绘制图表
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
select distinct experiment.idx_scenario,
|
||||
select distinct experiment.idx_scenario,
|
||||
n_max_trial, prf_size, prf_conn, cap_limit_prob_type, cap_limit_level, diff_new_conn, remove_t, netw_prf_n,
|
||||
mean_count_firm_prod, mean_count_firm, mean_count_prod,
|
||||
mean_max_ts_firm_prod, mean_max_ts_firm, mean_max_ts_prod,
|
||||
|
@ -74,6 +74,9 @@ left join
|
|||
from iiabmdb.with_exp_result
|
||||
where `status` = "R"
|
||||
group by s_id, id_firm) as s_n_remove_prod
|
||||
left join iiabmdb.firm_n_prod as firm_n_prod
|
||||
on s_n_remove_prod.id_firm = firm_n_prod.code
|
||||
where n_remove_prod = n_prod
|
||||
group by s_id) as s_n_all_prod_remove_firm
|
||||
on sample.id = s_n_all_prod_remove_firm.s_id
|
||||
) as secnario_count
|
||||
|
|
8
ToDo.md
8
ToDo.md
|
@ -1,5 +1,5 @@
|
|||
## 下一步计划
|
||||
~~1. 加快运行速度,优化属性值计算。~~
|
||||
~~2. 优化mesa架构,确保合乎规范。~~
|
||||
3.等待运行结果(77.5万)
|
||||
4.进行方差分析
|
||||
1. ~~修改部分sql代码~~
|
||||
2. ~~方差分析~~
|
||||
3. 调整传入参数
|
||||
4. 调整资源消耗逻辑
|
Binary file not shown.
2
main.py
2
main.py
|
@ -55,7 +55,7 @@ if __name__ == '__main__':
|
|||
# 输入参数
|
||||
parser = argparse.ArgumentParser(description='setting')
|
||||
parser.add_argument('--exp', type=str, default='without_exp')
|
||||
parser.add_argument('--job', type=int, default='4')
|
||||
parser.add_argument('--job', type=int, default='6')
|
||||
parser.add_argument('--reset_sample', type=int, default='0')
|
||||
parser.add_argument('--reset_db', type=bool, default=False)
|
||||
|
||||
|
|
Loading…
Reference in New Issue