tum-pbs / pbdl-book

Welcome to the Physics-based Deep Learning Book (v0.2)
https://physicsbaseddeeplearning.org/
993 stars 155 forks source link

Small updates to intro-teaser.ipynb #10

Closed bobarna closed 2 years ago

bobarna commented 2 years ago

This fixes the error: Input 0 of layer "dense" is incompatible with the layer: expected min_ndim=2, found ndim=1. Full shape received: (5,), which makes the current example code not run.

Passing the input_shape argument to the Dense layer, keras will create an input layer to insert before the current layer. This is equivalent to explicitly defining an InputLayer.

thunil commented 2 years ago

Nice fixes, thanks!