whether forward and predict in deep learning are the same
14 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
robinho robinho
am 13 Aug. 2022
Beantwortet: Souvik Das
am 18 Aug. 2022
So far I think they are the same but may I confirm?
0 Kommentare
Akzeptierte Antwort
Souvik Das
am 18 Aug. 2022
'forward' is used to compute deep learning network output for TRAINING whereas 'predict' is used to compute deep learning network output for INFERENCE.
In some cases like yours, both may give similar results, however some deep learning layers behave differently during training and inference (prediction). For example, during training, dropout layers randomly set input elements to zero to help prevent overfitting, but during inference, dropout layers do not change the input.
Please refer the below links for more details-
0 Kommentare
Weitere Antworten (1)
Souvik Das
am 18 Aug. 2022
I am assuming with 'forward', you mean 'forward propagation'. Deep learning networks usually have a lot of layers. Each layer accepts input data, processes it as per the activation function and passes it to the next layer. This is called 'forward propagation'.
In an abstract way, you can say 'prediction' is something that happens with the last layer where we get the final results from our deep learning network.
So 'prediction' and 'forward propagation' have a minor difference between them.
Siehe auch
Kategorien
Mehr zu Image Data Workflows finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!