What is the default mini-batch size in the fitrnet function

조회 수: 17 (최근 30일)
Peter Edwards
Peter Edwards 2022년 7월 15일
편집: Rahul 2022년 10월 12일
Hi,
I have recently been using the fitrnet function from the Statistics and Machine learning toolbox in order to do regression. Although having used it for a while, I am not sure of the mini-batch size that is used when computing the gradient for training.
I have looked through the documentation for the fitrnet function but have not been able to find the answer. It does speak of iterations, but not the number of iterations per epoch.
Does anyone know where to get this information and if the function uses full-batchs, mini-batches or stochastic GD.
Thanks

채택된 답변

Rahul
Rahul 2022년 10월 12일
편집: Rahul 2022년 10월 12일
Looking into "fitrnet.m" and verbose data there seems to be no explicit use of “mini batch size” and function is applied on entire “xdata” input variable, so the default mini batch size can be taken as 1.
But in custom training loops with "minibatchqueue" or "training options" the default “mini batch size” is 128.You can refer the following link for more information:
This is mostly used in custom training loops or while training deep learning architectures.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Data Workflows에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by