Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Plot of predictions with test data in Colab notebook doesn't make much sense

Open
#3 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
42/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
jupyter-notebook, matplotlib, tensorflow

Research direction

Open the Colab notebook and inspect the final "Plot the predictions along with to the test data" section, comparing it with the linked TensorFlow Lite example. Run the notebook through training and revise the plot so it represents the test data and predictions meaningfully without the reported Matplotlib deprecation warning.

Written by the indexing model from the issue text.

Description

In the Colab notebook, after the training we plot some graphs.
The last one, which is "Plot the predictions along with to the test data", is literally taken from a standard TensorFlow Lite example notebook (see https://colab.research.google.com/github/tensorflow/tensorflow/blob/master/tensorflow/lite/experimental/micro/examples/hello_world/create_sine_model.ipynb#scrollTo=L_vE-ZDkHVxe )
but does not make much sense in this context.

Besides that, the code for that plot currently (ab)uses a deprecated matplotlib behaviour

/usr/local/lib/python3.6/dist-packages/matplotlib/axes/_base.py:380: MatplotlibDeprecationWarning: 
cycling among columns of inputs with non-matching shapes is deprecated.

which also suggests that the current plot is a bit nonsensical.

Dominant language
Jupyter Notebook
Stars
269
Forks
122
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from arduino/ArduinoTensorFlowLiteTutorials

All issues in arduino/ArduinoTensorFlowLiteTutorials

Similar issues

More Data Visualization issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.