foryichuanqi / RESS-Paper-2022.09-Remaining-useful-life-prediction-by-TaFCN

The source code of paper: Trend attention fully convolutional network for remaining useful life estimation in the turbofan engine PHM of CMAPSS dataset. Signal selection, Attention mechanism, and Interpretability of deep learning are explored.
44 stars 1 forks source link

python代码错误 #4

Open leijdjcn opened 1 month ago

leijdjcn commented 1 month ago

File "C:\Users\Liyanhui.conda\envs\tensor\lib\site-packages\matplotlib\pyplot.py", line 1005, in figure manager = new_figure_manager( File "C:\Users\Liyanhui.conda\envs\tensor\lib\site-packages\matplotlib\pyplot.py", line 527, in new_figure_manager _warn_if_gui_out_of_main_thread() File "C:\Users\Liyanhui.conda\envs\tensor\lib\site-packages\matplotlib\pyplot.py", line 504, in _warn_if_gui_out_of_main_thread canvas_class = cast(type[FigureCanvasBase], _get_backend_mod().FigureCanvas) File "C:\Users\Liyanhui.conda\envs\tensor\lib\site-packages\matplotlib\pyplot.py", line 348, in _get_backend_mod switch_backend(rcParams._get("backend")) File "C:\Users\Liyanhui.conda\envs\tensor\lib\site-packages\matplotlib\pyplot.py", line 406, in switch_backend canvas_class = module.FigureCanvas AttributeError: module 'backend_interagg' has no attribute 'FigureCanvas' 在运行这块grid_FD_multi_channel_one_FCN_RUL_A0_attention_1out_all_train_for_test代码时,出现上述的情况,如何解决

foryichuanqi commented 1 month ago

I can't reproduce your error, all the code is runnable on my computer. This is a compatibility issue caused by software or hardware. It is recommended that you change the corresponding code according to the problem.我没法复现你的错误,在我电脑上所有代码都是可运行的。这就是软件或硬件造成的兼容性问题。建议你应该去根据问题去改变一下对应代码。