NeuralNine / neuralintents

A simple interface for working with intents and chatbots.
MIT License
249 stars 135 forks source link

Error while training the model #47

Open Nitinvermaa opened 3 months ago

Nitinvermaa commented 3 months ago

I encounter below error while executing example.py from basic_chatbot

Below is my system setup Windows 11 python 3.9 neuralintents==0.1.0

Please let me how to solve this problem

Error: ValueError: Exception encountered when calling Sequential.call().

Invalid input shape for input Tensor("sequential_1/Cast:0", shape=(None, 44), dtype=float32). Expected shape (None, None, 44), but input has incompatible shape (None, 44)

Arguments received by Sequential.call(): • inputs=tf.Tensor(shape=(None, 44), dtype=int32) • training=True • mask=None

huineng commented 3 months ago

chatgpt suggested me to change this line

self.model.add(InputLayer(input_shape=(None,X.shape[1])))

self.model.add(InputLayer(input_shape=(X.shape[1],)))

Davesoul commented 2 months ago

Thanks a lot @huineng. I applied the change in the assistants.py from neuralintents library.