# ValueError: Input 0 of layer sequential\_21 is incompatible with the layer: : expected min\_ndim=3, found ndim=2. Full shape received: \[1, 1\]

**URL:** <https://mne.discourse.group/t/valueerror-input-0-of-layer-sequential-21-is-incompatible-with-the-layer-expected-min-ndim-3-found-ndim-2-full-shape-received-1-1/2300>\
**Category:** Mailing List Archive (read-only)\
**Tags:** list-archive\
**Created:** [August 27, 2020, 3:14am UTC](https://mne.discourse.group/t/valueerror-input-0-of-layer-sequential-21-is-incompatible-with-the-layer-expected-min-ndim-3-found-ndim-2-full-shape-received-1-1/2300 "2020-08-27T03:14:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [August 27, 2020, 3:14am UTC](https://mne.discourse.group/t/valueerror-input-0-of-layer-sequential-21-is-incompatible-with-the-layer-expected-min-ndim-3-found-ndim-2-full-shape-received-1-1/2300/1 "2020-08-27T03:14:41Z")

</div>

External Email - Use Caution

Hi everyone,  
&nbsp;&nbsp;&nbsp;&nbsp;I am new to python-EEG signal processing. Can you please help me to  
sort out the following issue for the dataset of input size (199603,16) and  
target label in 17th column. It would be great help if someone interprets  
this issue.

ValueError: in user code:  
/usr/local/lib/python3.6/dist-packages/tensorflow/python/keras/engine/training.py:806  
train\_function \* return step\_function(self, iterator)  
/usr/local/lib/python3.6/dist-packages/tensorflow/python/keras/engine/training.py:796  
step\_function \*\* outputs = model.distribute\_strategy.run(run\_step,  
args=(data,))  
/usr/local/lib/python3.6/dist-packages/tensorflow/python/distribute/distribute\_lib.py:1211  
run return self.\_extended.call\_for\_each\_replica(fn, args=args,  
kwargs=kwargs)  
/usr/local/lib/python3.6/dist-packages/tensorflow/python/distribute/distribute\_lib.py:2585  
call\_for\_each\_replica return self.\_call\_for\_each\_replica(fn, args, kwargs)  
/usr/local/lib/python3.6/dist-packages/tensorflow/python/distribute/distribute\_lib.py:2945  
\_call\_for\_each\_replica return fn(\*args, \*\*kwargs)  
/usr/local/lib/python3.6/dist-packages/tensorflow/python/keras/engine/training.py:789  
run\_step \*\* outputs = model.train\_step(data)  
/usr/local/lib/python3.6/dist-packages/tensorflow/python/keras/engine/training.py:747  
train\_step y\_pred = self(x, training=True)  
/usr/local/lib/python3.6/dist-packages/tensorflow/python/keras/engine/base\_layer.py:976  
\_\_call\_\_ self.name)  
/usr/local/lib/python3.6/dist-packages/tensorflow/python/keras/engine/input\_spec.py:196  
assert\_input\_compatibility str(x.shape.as\_list())) ValueError: Input 0 of  
layer sequential\_21 is incompatible with the layer: : expected min\_ndim=3,  
found ndim=2. Full shape received: [1, 1]  
regards,

\*M.Bhuvaneshwari,\*  
\*Research Scholar,\*  
\*Karunya Institute of technology and Sciences\*

\*Coimbatore.\*  
-------------- next part --------------  
An HTML attachment was scrubbed...  
URL: [http://mail.nmr.mgh.harvard.edu/pipermail/mne\_analysis/attachments/20200827/d20cd58b/attachment.html](http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200827/d20cd58b/attachment.html)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [August 27, 2020, 7:05am UTC](https://mne.discourse.group/t/valueerror-input-0-of-layer-sequential-21-is-incompatible-with-the-layer-expected-min-ndim-3-found-ndim-2-full-shape-received-1-1/2300/2 "2020-08-27T07:05:07Z")

</div>

External Email - Use Caution

hi,

if you want to get started with deep learning using MNE I would suggest:

[https://braindecode.org/](https://braindecode.org/)

Alex

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [August 27, 2020, 7:24am UTC](https://mne.discourse.group/t/valueerror-input-0-of-layer-sequential-21-is-incompatible-with-the-layer-expected-min-ndim-3-found-ndim-2-full-shape-received-1-1/2300/3 "2020-08-27T07:24:04Z")

</div>

External Email - Use Caution

thank you so much for your suggestion. I will try in MNE  
regards,

\*M.Bhuvaneshwari,\*  
\*Research Scholar,\*  
\*Karunya Institute of technology and Sciences\*

\*Coimbatore.\*
