I wanted to pass a varible rather than the class name into the constrain functio.

EG.

% ops=sdops(’w’,rand(10000,3)*5000-1000,tr.lab.list);

% r=sdroc(out,’ops’,ops,’measures’,{’TPr’,’12’,’precision’,’12’,’TPr’,’13’,’precision’,’13’,’TPr’,’80’,’precision’,’80’},’confmat’);

r2=constrain(r,’TPr(12)’,TrpNum,’precision(12)’,PrecisionNum);

the above codes work. Now, I want to pass the varible to the contstrain (to replace the lab), Can I do it?

class1=’12’;

e.g.

r2=constrain(r,’TPr(class1)’,TrpNum,’precision(class1)’,PrecisionNum)

this does not seem to be working.

I got the error: Error using sdroc/constrain

Unknown measure ‘TPr(class1)’

Can you please help how to best handle it?

thanks!

]]>
This is a query to get the record where the name is like Joe.

s = sdsql(database1, ‘select * from table1 where name like ‘’Joe’’’ )?

Now, I want a variable to pass this query.

var1=’Joe’

How to define this query to pass var1 into it?

any ideas?

Thanks!

]]>
Warning: Function labindex has the same name as a MATLAB builtin. We suggest

you rename the function to avoid a potential name conflict.

Warning: Function numlabs has the same name as a MATLAB builtin. We suggest you

rename the function to avoid a potential name conflict.

Would you please rename the function names in your next release or can you suggest how to handle this warning?

thanks!

]]>I’m trying to obtain the soft outputs from my SVM classifier, which I optimized using a ROC. However when I use the - infront of my SVC pipeline, I get a list of values from -x to +y. The threshold between my two classes is not at 0, because the datapoints from class 1 get soft outputs from -0.3 to +y and the datapoints from class 2 get soft outputs from -x to -0.5. My question is, can I get the threshold that determines the hardoutputs? And how do I interpret the soft ouputs?

Thanks!

]]>I was testing the sample codes in the manual and encountered the following error. can you please make your suggestions?

%%%%%

load nist16.mat

a.imsize

a=setprop(a,’imsize’,[16 16],’data’)

[tr,ts]=randsubset(a,0.5)

p=sddeepnet(tr,’conv’,[5 5 1 10],’bnorm’,’mpool’,3,’relu’,’conv’,[5 5 10 20],’bnorm’,’mpool’,2,’relu’,’conv’,[5 5 20 10],’epoch’,20)

%%%%%%%%%%%

The error message:

>> p=sddeepnet(tr,’conv’,[5 5 1 10],’bnorm’,’mpool’,3,’relu’,’conv’,[5 5 10 20],’bnorm’,’mpool’,2,’relu’,’conv’,[5 5 20 10],’epoch’,20)

ind acion input -> output : filter count step

----------------------------------------------------------------------------------

1. ‘conv’ : 16x16x1 12x12x10 5x5x1 10 1

2. ‘bnorm’ : 12x12x10 12x12x10

3. ‘mpool’ : 12x12x10 10x10x10 3x3 1

4. ‘relu’ : 10x10x10 10x10x10

5. ‘conv’ : 10x10x10 6 x6 x20 5x5x10 20 1

6. ‘bnorm’ : 6 x6 x20 6 x6 x20

7. ‘mpool’ : 6 x6 x20 5 x5 x20 2x2 1

8. ‘relu’ : 5 x5 x20 5 x5 x20

9. ‘conv’ : 5 x5 x20 1 x1 x10 5x5x20 10 1

Architecture OK

Attempt to execute SCRIPT vl_nnconv as a function:

C:\APR\perClass_Pro_5.0\perclass\matconvnet\matlab\vl_nnconv.m

Error in vl_simplenn (line 296)

res(i+1).x = vl_nnconv(res(i).x, l.weights{1}, l.weights{2}, ...

Error in dn_process

Error in dn_process

Error in sddeepnet

thank you!

]]>Can you please provide the dataset (you described in your manual) - nist16.mat so that we could perform the test of the deep Convolutional network algorithm?

Also can you please provide the dataset shown in the video (A - deep learning demonstration) so that we can perform some tests on the deep learning convolutional network algorithms?

Look forward to your response as soon as possible.

thank you so much!

lw

]]>there is a demand to pass the variables to the sdlab for easy creation the dataset through the GUI.

Can you please help provide an example to pass a variable to the sdlab function?

eg. I can use sdlab as follows: lab=sdlab(’class1’,124,’class2’,200,’class3’,300);

then I wanted to use it as the followings:

classname={class1,class2,class3}’;

r1=124; r2=200; r3=300;

lab=sdlab(classname(1),r1,classname(2),r2,classname(3),r3);

this is not working. can you provide an example to achieve this task? thanks!

]]>the manual only provided the data inserting to a whole table.

Can you please provide an example how to insert the data into one field of the table with char type data?

then insert the rest fields of the table with float data type?

thank you!

Liwei

]]>I tried to use database function in the perclass.

In the following, I can create a table in the matlab if I put the function in only one line.

sdsql(DefLibDB, ‘create table exampledata( field1 varchar(20), field2 nchar(20), field3 int, field4 int, field6 int, field7 int, field8 int, field9 int, field10 int, field11 int, field12 int);’)

However, I want to create a table with over 100 fields. The fields so long, so I want the fields go to the second line or third line and used the following matlab supported notation (also see the attached file).

sdsql(DefLibDB, ‘create table exampledata( field1 varchar(20), field2 nchar(20), field3 int, field4 int,’…

‘ field6 int, field7 int, field8 int, field9 int, field10 int, field11 int, field12 int);’);

but, it does not seem to work.

any ideas?

thanks!

]]>I am writing to the 3 class design. I have a 3 class data set with the class 12, 13, and 80. I want to design to set up the optimal ROC to get the highest classification accuracy rate (TPr) on 12 and 13, and as high classification confidence rate (Precision) as possible on 12 and 13. The 12 and 13 are important classes, but confusions between the 12 and 13 are acceptable. Confusions betwteen 80 and 12+13 should be reduced as much as possible (to minimal). could you please advise how to fix the ROC point? I have one of the example below. but could not achieve a good performance. thank you so much!

r=sdroc(out,’ops’,ops,’measures’,{’TPr’,’12’,’precision’,’12’,’TPr’,’13’,’precision’,’13’,’TPr’,’80’,’precision’,’80’})

r2=constrain(r,’TPr(12)’,0.88,’precision(12)’,0.79)

r3=setcurop(r2,’max’,’TPr(80)’)