聚烯烃月度预测调试
This commit is contained in:
		
							parent
							
								
									8a2cf77639
								
							
						
					
					
						commit
						3c224e48f1
					
				| @ -498,9 +498,12 @@ def predict_main(): | |||||||
|     # logger.info('制作报告end') |     # logger.info('制作报告end') | ||||||
| 
 | 
 | ||||||
|     # 图片报告 |     # 图片报告 | ||||||
|  |     try: | ||||||
|         logger.info('图片报告ing') |         logger.info('图片报告ing') | ||||||
|         pp_bdwd_png(global_config=global_config) |         pp_bdwd_png(global_config=global_config) | ||||||
|         logger.info('图片报告end') |         logger.info('图片报告end') | ||||||
|  |     except Exception as e: | ||||||
|  |         logger.info(f'图片报告失败:{e}') | ||||||
| 
 | 
 | ||||||
|     # # LSTM 单变量模型 |     # # LSTM 单变量模型 | ||||||
|     # ex_Lstm(df,input_seq_len=input_size,output_seq_len=horizon,is_debug=is_debug,dataset=dataset) |     # ex_Lstm(df,input_seq_len=input_size,output_seq_len=horizon,is_debug=is_debug,dataset=dataset) | ||||||
| @ -527,14 +530,14 @@ def predict_main(): | |||||||
| if __name__ == '__main__': | if __name__ == '__main__': | ||||||
|     # global end_time |     # global end_time | ||||||
|     # 遍历2024-11-25 到 2024-12-3 之间的工作日日期 |     # 遍历2024-11-25 到 2024-12-3 之间的工作日日期 | ||||||
|     # for i_time in pd.date_range('2025-7-28', '2025-7-29', freq='B'): |     for i_time in pd.date_range('2025-7-24', '2025-8-11', freq='B'): | ||||||
|     #     try: |         try: | ||||||
|     #         global_config['end_time'] = i_time.strftime('%Y-%m-%d') |             global_config['end_time'] = i_time.strftime('%Y-%m-%d') | ||||||
|     #         global_config['db_mysql'].connect() |             global_config['db_mysql'].connect() | ||||||
|     #         predict_main() |             predict_main() | ||||||
|     #     except Exception as e: |         except Exception as e: | ||||||
|     #         logger.info(f'预测失败:{e}') |             logger.info(f'预测失败:{e}') | ||||||
|     #         continue |             continue | ||||||
| 
 | 
 | ||||||
|     # global_config['end_time'] = '2025-08-05' |     # global_config['end_time'] = '2025-08-05' | ||||||
|     # predict_main() |     # predict_main() | ||||||
| @ -542,7 +545,7 @@ if __name__ == '__main__': | |||||||
|     # sql_inset_predict(global_config) |     # sql_inset_predict(global_config) | ||||||
| 
 | 
 | ||||||
|     #  图片报告 |     #  图片报告 | ||||||
|     global_config['end_time'] = '2025-08-05' |     # global_config['end_time'] = '2025-08-05' | ||||||
|     logger.info('图片报告ing') |     # logger.info('图片报告ing') | ||||||
|     pp_bdwd_png(global_config=global_config) |     # pp_bdwd_png(global_config=global_config) | ||||||
|     logger.info('图片报告end') |     # logger.info('图片报告end') | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user