Bad documentation help function

조회 수: 1 (최근 30일)
francisco caldeira
francisco caldeira 2020년 5월 3일
댓글: Tommy 2020년 5월 4일
help(net.divideFcn)
This is incorret!
What help function do I use to check the property of an train the Network??
I tried this but don't work
help net.divideFcn

답변 (1개)

Steven Lord
Steven Lord 2020년 5월 4일
help net.divideFcn
attempts to get help for the function whose name is divideFcn in the package folder named net.
help(net.divideFcn)
attempts to get help for the function whose name is returned by the function divideFcn in the package folder named net, whose name is stored in the divideFcn property of the object stored in the variable net, or whose name is stored in the divideFcn field of the struct array stored in the variable net.
These are two very different things.
  댓글 수: 2
francisco caldeira
francisco caldeira 2020년 5월 4일
Read twice and don't understand your complicate language term.. you say one is a funcion other is help function??
I want to learn what means 'goal' in like 'net.trainParam.goal' , so I can't do like
help net.trainParam.goal
What I do??? Simple and clear I think.
Tommy
Tommy 2020년 5월 4일
The difference is similar to the difference between
>> help sum
sum Sum of elements.
S = sum(X) is the sum of the elements of the vector X. If X is a matrix,
...
which displays help for the function sum(), and
>> help(sum)
Error using sum
Not enough input arguments.
which first evaluates sum and then displays help for whatever the output was.
help(net.divideFcn)
This line is intended to be run when you have a neural network object called net. Neural network objects have a property named divideFcn which "defines the data division function to be used when the network is trained using a supervised algorithm" (from here). So the above line first evaluates net.divideFcn to obtain the data division function, and it then displays help for whatever that data division function is.

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

카테고리

Help CenterFile Exchange에서 Pattern Recognition and Classification에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by