ANN SCG train function

조회 수: 8 (최근 30일)
nur dsc
nur dsc 2021년 3월 11일
댓글: nur dsc 2021년 4월 6일
Hi,
I have some questions about Matlab ANN algorithm functions.
1) I have an example about ANN which is used trainscg as the train function .What does train function means ? Because we know that we can add so many layers and every layer has own activation function. I think trainscg function is just used help to minimize error in loss function (like cross-entropy) , right ? So it is not activation function.I think it is just an optimizer . But why matlab called it train function ?
I want to replicate this function in Python but I have no idea which function I should use instead of trainscg. How about ADAM or SGD ?
2) Is there any difference between tangent sigmoid activation function and sigmoid function activation function?
Thanks.

답변 (1개)

Vineet Joshi
Vineet Joshi 2021년 3월 26일
Hi
Network training functions are functions in MATLAB used to train a neural network using a specified algorithm.
trainscg for example uses scaled conjugate gradient backpropagation as a training algorithm where as traingdx uses gradient descent with momentum and adaptive learning rate backpropagation as a training algorithm.
Apart from a train function, a network in MATLAB uses other function properties like adaptation function or performance function.
The details of which can be found here.
As for your other question, they key difference between both is activation function is for tansig (Tangent Sigmoid) the range is between [-1 and 1] whereas for logsig (Sigmoid) the range is [0,1] although both make an S-shaped curve.
Hope this helps.
  댓글 수: 1
nur dsc
nur dsc 2021년 4월 6일
Hello, thanks for tansig function explanation but my question was like that : I think trainscg function is just used help to minimize error in loss function (like cross-entropy) , right ? So it is not activation function.I think it is just an optimizer . But why matlab called it train function ?
And in python what is trainscg ? I want to replicate this function in Python but I have no idea which function I should use instead of trainscg. How about ADAM or SGD ?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Sequence and Numeric Feature Data Workflows에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by