After writing the train() function what to do?
Prateek bhaiya said i’ve train the model in google collab ?. How to do ,Not cleared with the statement please help
DOUBT after Writing Train function
Just go to google colab, upload your notebook, and change the runtime, and run your code.
Read this blog for more information.
Happy Learning 
Hey, I’ve uploaded the notebook. Now in google collab it says file not found. So i uploaded the file on the drive. Will it work after that , because i think when we wrote the train function but we haven’t called it so how is it going to work?
Of course you have to call that function, without that how it is gonna trained.
I did all the transfer to google collab and run all the files now i am getting this errorif self.read_only: --> 318 raise ValueError(‘Cannot create group in read-only mode.’) 319 val = H5Dict(self.data.create_group(attr)) 320 return val ValueError: Cannot create group in read-only mode.
i called the function train() in a new cell it shows a new error as
KeyError Traceback (most recent call last) in () ----> 1 train() 10 frames in data_generator(train_descriptions, encoding_train, word_to_idx, max_len, batch_size) 5 for key,desc_list in train_descriptions.items(): 6 n=1 ----> 7 photo = encoding_train[key+".jpg"] 8 for desc in desc_list: 9 seq = [word_to_idx[word] for word in desc.split() if word in word_to_idx] KeyError: ‘2513260012_03d33305cf.jpg’
This key error occurs because word_to_idx is not defined, basically try runnin your code from very starting of the project on google colab itself. So that all numpy files etc would be present there.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.