How to know where a class and its members are located ?

1 view (last 30 days)
How do I locate where this file / function is ? dagnn
% Add softmax loss layer.
pFc8 = (arrayfun(@(a) strcmp(a.name, 'predcls'), net.layers)==1);
net.addLayer('losscls',dagnn.Loss(), ...
{net.layers(pFc8).outputs{1},'label'}, ...
'losscls',{});
I want to specifically know the classes it has like dagnn.Loss(). I tried which dagnn which does not work but help dagnn works. Why does which dagnn not work ? help dagnn works but it does not tell me everything.
>> help dagnn
Contents of dagnn:
dagnn - Directed acyclic graph neural network
AffineGridGenerator - dagnn.AFFINEGRIDGENERATIOR Generate an affine grid for bilinear resampling
BilinearSampler - Wrapper for BilinearSampler block:
Crop - DagNN cropping layer.
ElementWise - DagNN layers that operate at individual spatial locations
Layer - Base class for a network layer in a DagNN
Sum - DagNN sum layer
UniformScalingGridGenerator - dagnn.UNIFORMSCALINGGRIDGENERATOR Generate an iso-tropic scaling + translation

Accepted Answer

Walter Roberson
Walter Roberson on 8 Dec 2016
  2 Comments
RuiQi
RuiQi on 8 Dec 2016
Edited: RuiQi on 8 Dec 2016
Thanks ! I am aware of that but the website doesn't tell me anything about the function. I want to read the code in dagnn and its members.. And i'd like to know where it is stored. Im not sure why 'which' is not telling me where its stored at
RuiQi
RuiQi on 8 Dec 2016
Ok so I just learnt something today. It turns out the classes were 'package folders' so I should read up on it first https://www.mathworks.com/help/matlab/matlab_oop/scoping-classes-with-packages.html

Sign in to comment.

More Answers (0)

Categories

Find more on Image Data Workflows in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!