# Keras network learner execution problem

**URL:** <https://forum.knime.com/t/keras-network-learner-execution-problem/78744>\
**Category:** KNIME Extensions\
**Tags:** keras, node\
**Created:** [April 24, 2024, 3:22pm UTC](https://forum.knime.com/t/keras-network-learner-execution-problem/78744 "2024-04-24T15:22:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![amookhashi](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/a/3be4f8/32.png) [@amookhashi](https://forum.knime.com/u/amookhashi)\
**Post date:** [April 24, 2024, 3:22pm UTC](https://forum.knime.com/t/keras-network-learner-execution-problem/78744/1 "2024-04-24T15:22:21Z")

</div>

I have Brain tumor MRI images dataset which contains 4 categories and I want to implement CNN to train model so that it learns to categorise unseen image( test data ) correctly. when I want to train my models with the nodes showed in the pictures I attach I get this error when executing keras network learner node based on the configuration also shown in the screenshots and I can not figure it out. would anyone kindly help me through solving that? Iget this error : Execute failed: Node training data size for input/target ‘dense\_2\_0:0’ exceeds the expected size. Neuron count of this input/target is 1, batch size is 5712. Thus, expected training data size is 5712. Please check the column selection for this input/target and validate the node’s training data  
and this is my workflow and node configuration:

 ![Knime project screenshot](https://forum-cdn.knime.com/uploads/default/original/3X/b/b/bbcd2616d44f401c5c142e58c0463e498caff6b9.jpeg)  
 ![keras dense layer configure](https://forum-cdn.knime.com/uploads/default/original/3X/1/8/18fccf6b2ff4148a9d5d702d7c8ab9f6d59e4d44.png)  
 ![keras network learner inpu target](https://forum-cdn.knime.com/uploads/default/original/3X/8/0/80d3505bb300f2ed6f2a3a900c2735a72c8275e7.png)

 ![keras network learner input data](https://forum-cdn.knime.com/uploads/default/original/3X/7/c/7c507bd0b9f18578d5a2ca471cb639ad1d9c6406.png)  
 ![keras network learner options](https://forum-cdn.knime.com/uploads/default/original/3X/7/b/7bc9d156b3aedfd93c0613bae10aaa843da5a9ec.jpeg)

---

<div class="post-metadata">

**Author:** ![lgknime](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/l/5f9b8f/32.png) [@lgknime](https://forum.knime.com/u/lgknime)\
**Post date:** [May 14, 2024, 7:56am UTC](https://forum.knime.com/t/keras-network-learner-execution-problem/78744/2 "2024-05-14T07:56:25Z")

</div>

Hey amookhashi,

welcome to the KNIME Community. It is best to share the workflow itself so that others can help you. Would be great if you could do that.  
All the best  
Linus

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [August 12, 2024, 7:56am UTC](https://forum.knime.com/t/keras-network-learner-execution-problem/78744/3 "2024-08-12T07:56:31Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
