Effacer les filtres
Effacer les filtres

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

1 vue (au cours des 30 derniers jours)
RuiQi
RuiQi le 8 Déc 2016
Commenté : RuiQi le 8 Déc 2016
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

Réponse acceptée

Walter Roberson
Walter Roberson le 8 Déc 2016
  2 commentaires
RuiQi
RuiQi le 8 Déc 2016
Modifié(e) : RuiQi le 8 Déc 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 le 8 Déc 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

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Image Data Workflows dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by