保存预测,去掉index列
This commit is contained in:
		
							parent
							
								
									80f50eea71
								
							
						
					
					
						commit
						e23e1b1362
					
				| @ -196,6 +196,8 @@ def ex_Model(df,horizon,input_size,train_steps,val_check_steps,early_stop_patien | |||||||
| 
 | 
 | ||||||
|     #进行未来时间预测 |     #进行未来时间预测 | ||||||
|     df_predict=nf.predict(df_test).reset_index() |     df_predict=nf.predict(df_test).reset_index() | ||||||
|  |     # 去掉index列 | ||||||
|  |     df_predict.drop(columns=['index'], inplace=True) | ||||||
|     df_predict.astype({col: 'float32' for col in df_predict.columns if col not in ['ds'] }) |     df_predict.astype({col: 'float32' for col in df_predict.columns if col not in ['ds'] }) | ||||||
|      |      | ||||||
|     # 添加预测时间 |     # 添加预测时间 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user