arduino / arduino/ArduinoTensorFlowLiteTutorials

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

Offen
#3 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Jupyter Notebook
Sterne
270
Forks
122
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Öffne das Colab-Notebook und überprüfe den abschließenden Abschnitt "Plot the predictions along with to the test data", indem du ihn mit dem verlinkten TensorFlow Lite-Beispiel vergleichst. Führe das Notebook bis zum Training aus und überarbeite den Plot so, dass er die Testdaten und Vorhersagen sinnvoll darstellt, ohne die gemeldete Matplotlib-Deprecation-Warnung.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
jupyter-notebook, matplotlib, tensorflow
Bereich
data-visualization, machine-learning
Issue-Typ
Bug
Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
42/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.