Using DropoutLayer in neural network (not only in CNN)
조회 수: 2 (최근 30일)
이전 댓글 표시
hey guys,
i am using matlab to create a Neural Network for a Regression Problem.
to avoid overfitting i want to add a dropoutLayer after the Input layer, but i see only examples for CNN.
did someone knows, how to add a dropoutLayer in noraml neural Network or Setting the Options of neural Network(not CNN)
thanks
댓글 수: 3
Mario Schweda
2020년 4월 29일
I´m looking for the same. A droput layer for simple networks like fitnet. Not only for CNNs.
답변 (1개)
Moses Wayne
2017년 8월 16일
The "dropoutLayer" class seems to be able to solve your problem. Calling it with no arguments returns a layer with 0.5 probability of dropping an input element. This layer can then be used in the training of your neural network. Here is a code example of creating a dropout layer with .6 probability of dropping an input element:
myLayer = dropoutLayer(0.6)
댓글 수: 4
참고 항목
카테고리
Help Center 및 File Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!