Maybe it would make sense to add a relu and an additional linear layer on top, so that instead of just a weighted combination of NLP and a tabular model activations you would also get their interactions?
Also you mention that the same learning rates are used for both models, which sounds like an important limitation. Maybe the learned bottom layers weights should be kept frozen and only the top layers trained?
You wanna try Docker Toolbox for Windows (legacy version) instead of Docker for Windows which supports Windows pro and Windows Enterprise, Try this article.
I love this! This is a great example of how to create your custom ItemBase and ItemList
Just one remark to help you port your code to the latest version of fastai, the show_batch method in AudioItem should now be show_xys in AudioItemList (and you can code show_xyzs if you want show_results to work).
For all the ways you can customize your own ItemList, there is now a tutorial, just in case you didn’t see it before.
That all seems valid and I don’t see an error there. Can you check the console on the browser? Also, are you serving via HTTPS, most browsers require this to access the camera.
According to your code if its non HTTPS then the code is forcing to serve in https. issue is when i run python server.py and try to acess its get loaded for a while without webcam on and suddenly the web-page dies.
Sorry I am not expert and need some more guidance on this. My data-set is multi class and each data belong to only one specific class. So can’t i use cross entropy for this as loss function? I thought cross entropy can be used?
When you do classification, the usual loss function that is used is called Cross Entropy.
It can be used if you have 2 classes and is in this case sometimes called Binary Cross Entropy and defined by the function : -(y \log(\hat{y}) + (1-y) \log(1-\hat{y})), which is basically the same as an if/else statement.
If you have more than 2 classes, it is sometimes called Categorical Cross Entropy and is defined in a general manner by the function: - \sum_c y_c \log(\hat{y_c}).
So in your case you should use Categorial Cross Entropy, simply called CrossEntropyLoss in PyTorch.
I have managed to get the error rate of 10% but there is still a lot of improvement I have to make in order to make my model robust.
A lot of people are struggling to deploy their flask app on Heroku because of the size and installation of a library, I have written a guide on GitHub in case anyone needs it
I am also writing a blog which will be coming soon
crossentropy is the default for image classification i fastai so you should expect the same results as before. MultiLabelSoftMarginLoss is a lossfunction i pytorch that you can find her: https://pytorch.org/docs/stable/nn.html#multilabelmarginloss.
so you could try and set learn.loss_function = torch.nn.MultiLabelMarginLoss() and see if that works.