NeuralNine / neuralintents

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

Error while training the model #47

Open Nitinvermaa opened 6 months ago

Nitinvermaa commented 6 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 6 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 5 months ago

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

rseward commented 2 months ago

@Davesoul will this make it into the master branch? Or are gonna have to fork to do this ourselves? Just getting my feet wet with the project, trying to judge it's usefulness. @huineng Good work with chatgpt! It can be like pulling teeth sometimes to get a useful suggestion. :-( But I am the beneficiary of your work!