playerkk / drfi_matlab

MATLAB implementation of the paper Salient Object Detection: A Discriminative Regional Feature Integration Approach
50 stars 26 forks source link

error while executing trainALL.m #6

Open gargisri68 opened 5 years ago

gargisri68 commented 5 years ago

Undefined function or variable 'treeprune'.

Error in treefitw>removebadsplits (line 560) Tree = treeprune(Tree,'nodes',find(doprune));

Error in treefitw (line 368) Tree = removebadsplits(Tree);

Error in train_boosted_dt_2c (line 48) dt = treefitw(features, y, w, 1/num_data/2, 'catidx', cat_features, 'method', 'classification', 'maxnodes', nodespertree*4);

Error in trainSameLabelClassifier (line 102) same_label_classifier = train_boosted_dt_2c(trn_edata, [], trn_elab, 200, 20);

Error in trainAll (line 6) trainSameLabelClassifier;

lii7718195 commented 3 years ago

I'hv had this problem,you have to download the matlab2012a.