Thank you that explains that I could upload the weights and access them during the infer() from the resources/ directory.
But what you have not answered is the train() function. Do we get different training data during a run ? If not is it not better to do the training before and just submit the weight and the infer() logic ?
The train function is run only once, while the infer function is run for each file (data_file_path).
In the train function, you are supposed to read the data however you want (located in data_directory_path) to train your model. The function’s return value is ignored.
In the infer function, the returned value is a prediction for the current file and is used for scoring.
Thank you. That makes things a lot clearer now. One thing is still left: Are the training data in data_directory_path the same as we have already downloaded via the notebook ?