Tinyml Workshop Runtime Error
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 38/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- arduino, jupyter-notebook, matplotlib, python
调研方向
在 Colab 中打开 arduino_tinyml_workshop.ipynb,并从“Run with Test Data”单元格开始。结合打印出的 inputs_test、outputs_test 和 predictions 的形状,检查报告中提到的绘图代码行,然后重新运行该单元格。完成的标准是教程单元格在没有报告的 ValueError 的情况下运行完成,并显示实际数据和预测数据的图表。
由索引模型根据 Issue 内容生成。
描述
Running through the tutorial: Nano 33 BLE Sense Rev2
Get Started With Machine Learning on Arduino
In arduino_tinyml_workshop.ipynb in Colab
Got data and uploaded to Colab.
Running the cells, got to the cell: Run with Test Data'
Runtime errors on these lines:
plt.plot(inputs_test, outputs_test, 'b.', label='Actual')
plt.plot(inputs_test, predictions, 'r.', label='Predicted')
Added in a few prints of data...
OUTPUT WITH ERRORS:
1/1 [==============================] - 0s 39ms/step
predictions =
[[1. 0. ]
[0.998 0.002]
[0. 1. ]
[1. 0. ]]
inputs_test =
[[0.701375 0.520875 0.378875 ... 0.500183 0.499817 0.499878 ]
[0.5895 0.461625 0.743125 ... 0.500534 0.50016775 0.50004575]
[0.68425 0.4585 0.71725 ... 0.4999695 0.4987335 0.49971 ]
[0.66625 0.51975 0.3385 ... 0.500885 0.500702 0.5009155 ]]
actual =
[[1. 0.]
[1. 0.]
[0. 1.]
[1. 0.]]
ValueError Traceback (most recent call last)
in <cell line: 12>()
10 plt.clf()
11 plt.title('Training data predicted vs actual values')
---> 12 plt.plot(inputs_test, outputs_test, 'b.', label='Actual')
13 plt.plot(inputs_test, predictions, 'r.', label='Predicted')
14 plt.show()
3 frames
/usr/local/lib/python3.10/dist-packages/matplotlib/axes/_base.py in _plot_args(self, tup, kwargs, return_kwargs, ambiguous_fmt_datakey)
520 ncx, ncy = x.shape[1], y.shape[1]
521 if ncx > 1 and ncy > 1 and ncx != ncy:
--> 522 raise ValueError(f"x has {ncx} columns but y has {ncy} columns")
523 if ncx == 0 or ncy == 0:
524 return []
ValueError: x has 714 columns but y has 2 columns
- 主要语言
- Jupyter Notebook
- 星标
- 269
- 派生
- 122
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
arduino/ArduinoTensorFlowLiteTutorials 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 25/100
arduino/ArduinoTensorFlowLiteTutorials#36 · 1 条评论 ·
-
难度 3/5 1-2 天 新手友好度 25/100
arduino/ArduinoTensorFlowLiteTutorials#35 · 4 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 30/100
arduino/ArduinoTensorFlowLiteTutorials#34 · 5 条评论 ·
-
难度 1/5 1 小时以内 新手友好度 25/100
-
难度 4/5 3-5 天 新手友好度 35/100
arduino/ArduinoTensorFlowLiteTutorials#32 · 2 条评论 · 1 个 reaction ·
查看 arduino/ArduinoTensorFlowLiteTutorials 的全部 Issue
相似的 Issue
-
BREAKING CHANGE bug
难度 2/5 1-3 小时 新手友好度 80/100
-
难度 2/5 1-3 小时 新手友好度 72/100
-
Status: Opened
难度 2/5 1-3 小时 新手友好度 70/100
-
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 75/100
zephyrproject-rtos/zephyr#120157 ·