First day of py

这是我转到新职位后的第一天学习编程的经历分享,希望能够与各地的朋友一同分享我的成长过程。

First day for study py when turn to another position in my career. And share them to my all friends in everywhere & anytime.

刚刚输出的代码错误,请帮我分析一下是那个地方错误/root/miniconda3/lib/python3.9/site-packages/matplotlib/backends/backend_agg.py:238: RuntimeWarning: Glyph 27169 missing from current font. font.set_text(s, 0.0, flags=flags) /root/miniconda3/lib/python3.9/site-packages/matplotlib/backends/backend_agg.py:238: RuntimeWarning: Glyph 22411 missing from current font. font.set_text(s, 0.0, flags=flags) /root/miniconda3/lib/python3.9/site-packages/matplotlib/backends/backend_agg.py:238: RuntimeWarning: Glyph 35757 missing from current font. font.set_text(s, 0.0, flags=flags) /root/miniconda3/lib/python3.9/site-packages/matplotlib/backends/backend_agg.py:238: RuntimeWarning: Glyph 32451 missing from current font. font.set_text(s, 0.0, flags=flags) /root/miniconda3/lib/python3.9/site-packages/matplotlib/backends/backend_agg.py:238: RuntimeWarning: Glyph 25439 missing from current font. font.set_text(s, 0.0, flags=flags) /root/miniconda3/lib/python3.9/site-packages/matplotlib/backends/backend_agg.py:238: RuntimeWarning: Glyph 22833 missing from current font. font.set_text(s, 0.0, flags=flags) /root/miniconda3/lib/python3.9/site-packages/matplotlib/backends/backend_agg.py:238: RuntimeWarning: Glyph 26354 missing from current font. font.set_text(s, 0.0, flags=flags) /root/miniconda3/lib/python3.9/site-packages/matplotlib/backends/backend_agg.py:238: RuntimeWarning: Glyph 32447 missing from current font. font.set_text(s, 0.0, flags=flags) /root/miniconda3/lib/python3.9/site-packages/matplotlib/backends/backend_agg.py:201: RuntimeWarning: Glyph 27169 missing from current font. font.set_text(s, 0, flags=flags) /root/miniconda3/lib/python3.9/site-packages/matplotlib/backends/backend_agg.py:201: RuntimeWarning: Glyph 22411 missing from current font. font.set_text(s, 0, flags=flags) /root/miniconda3/lib/python3.9/site-packages/matplotlib/backends/backend_agg.py:201: RuntimeWarning: Glyph 35757 missing from current font. font.set_text(s, 0, flags=flags) /root/miniconda3/lib/python3.9/site-packages/matplotlib/backends/backend_agg.py:201: RuntimeWarning: Glyph 32451 missing from current font. font.set_text(s, 0, flags=flags) /root/miniconda3/lib/python3.9/site-packages/matplotlib/backends/backend_agg.py:201: RuntimeWarning: Glyph 25439 missing from current font. font.set_text(s, 0, flags=flags) /root/miniconda3/lib/python3.9/site-packages/matplotlib/backends/backend_agg.py:201: RuntimeWarning: Glyph 22833 missing from current font. font.set_text(s, 0, flags=flags) /root/miniconda3/lib/python3.9/site-packages/matplotlib/backends/backend_agg.py:201: RuntimeWarning: Glyph 26354 missing from current font. font.set_text(s, 0, flags=flags) /root/miniconda3/lib/python3.9/site-packages/matplotlib/backends/backend_agg.py:201: RuntimeWarning: Glyph 32447 missing from current font. font.set_text(s, 0, flags=flags) X_test shape: (20, 60, 2) 1/1 [==============================] - 1s 658ms/step <ipython-input-1-9621f87c0ca4>:148: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray. real_close_seq = np.array(real_close_seq) --------------------------------------------------------------------------- IndexError Traceback (most recent call last) Input In [1], in <cell line: 152>() 150 # ==================== 10. 模型评估(仅评估第一天预测精度)==================== 151 first_day_pred = predicted_close_unscaled[:, 0] --> 152 first_day_true = real_close_seq[:, 0] 154 mae = mean_absolute_error(first_day_true, first_day_pred) 155 mse = mean_squared_error(first_day_true, first_day_pred) IndexError: too many indices for array: array is 1-dimensional, but 2 were indexed
10-18
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值