833 views
1 1 vote
I am using Matlab R2018b and am trying to infuse SVM classifier within CNN. My plan is to use CNN only as a feature extractor and use SVM as the classifier. I know people have already implemented it a few years back either in tensorflow or in other platforms. In implementing this I got stuck at a point during backward propagation. I got puzzled about which loss function I need to implement to upgrade the gradients and the parameters.

Few points came up during this:

1. I got a feeling to implement the hinge loss here. But which form of hinge loss should I implement? Should I move on to the second form of hinge loss implementation for calculating loss during backward propagation?

2. Besides, calculating the backward loss, should I calculate the forward loss as well to find out the loss occurred in the model?

Any form of advice doing this CNN-svm infusion will be appreciated as I am unable to find any such material implemented in Matlab to get help.

Thanks.

Please log in or register to answer this question.

Related questions

3 3 votes
1 answers 1 answer
6.0k
6.0k views
tofighi asked Aug 10, 2020
6,004 views
The goal of backpropagation is to optimize the weights so that the neural network can learn how to correctly map arbitrary inputs to outputs.Assume for the following neur...
3 3 votes
1 answers 1 answer
7.4k
7.4k views
tofighi asked Mar 18, 2019
7,445 views
The dataset of pass/fail in an exam for 5 students is given in the table below. If we use Logistic Regression as the classifier and assume the model suggested by the opti...
0 0 votes
0 0 answers
529
529 views
HbibOs asked Jun 21, 2021
529 views
Hello,I trained a CNN using synthetic data to perform a segmentation task on human faces. During the test and to evaluate the prediction of this network, I used 200 examp...
5 5 votes
1 answers 1 answer
9.1k
9.1k views
tofighi asked Jun 26, 2019
9,102 views
Assume we have a $5\times5$ px RGB image with 3 channels respectively for R, G, and B. IfR2000012001201021210101020G0212211100002202002002111B0100111201102021011012112 We...
1 1 vote
1 1 answer
592
592 views
kmr1994 asked May 1, 2019
592 views
https://stackoverflow.com/questions/55930051/is-impossible-predict-hours-time-series-to-minutes-time-series i want to this hours time series predict model to minute predi...