Opened 11 years ago

Closed 11 years ago

#579 closed defect (fixed)

EnsembleBuilder::predict doesn't work

Reported by: Peter Owned by: Peter
Priority: critical Milestone: yat 0.5.6
Component: classifier Version: 0.5.5
Keywords: Cc:

Description

This code from EnsembleBuilder::predict doesn't make sense to me. Shouldn't result be aggregated from the prediction of all k?

for(unsigned long k=0;k<size();++k) {				
  Data sub_data = test_data(data, k);
  classifier(k).predict(sub_data,prediction);
}

for(size_t i=0; i<prediction.rows();i++) 
  for(size_t j=0; j<prediction.columns();j++) 
    result[i][j].add(prediction(i,j));		

Change History (2)

comment:1 Changed 11 years ago by Peter

Status: newassigned
Summary: EnsembleBuilder::predict doesn't work, does it?EnsembleBuilder::predict doesn't work

comment:2 Changed 11 years ago by Peter

Resolution: fixed
Status: assignedclosed

(In [2132]) fixes #579

Note: See TracTickets for help on using tickets.