Python Forum
Is model built correctly?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is model built correctly?
#1
Hi,

I'm new to neural networks and I want to know whether my model requires more data or it is built not correctly.

I build a CNN model with PyTorch for pos tagging. My train dataset contains 500 tagged sentences

print(sents[70])
print(tags[70])

what explorer was nicknamed Iberis Pilot
['WH', 'NOUN', 'AUX', 'VERB', 'NOUN', 'NOUN']  
but after training, my model is not able to predict even an example from the train dataset.

tagger(['what explorer was nicknamed Iberis Pilot'])
tagger = POSTagger(model, char_vocab, UNIQUE_TAGS, 40, 20)
tagger(['what explorer was nicknamed Iberis Pilot'])

[['VERB', 'NOUN', 'AUX', 'CONJ', 'NOUN', 'NOUN']]
and example that is not from train dataset

tagger(['where can i buy acid'])

[['VERB', 'TO', 'PREP', 'CONJ', 'NOUN']]
So, my model is built not correctly or it requires more data?
Reply
#2
While 500 sentences is not a huge number, it does seem that the results should be better than that. I would look at the model
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020