Ignore:
Timestamp:
Feb 2, 2008, 10:29:29 PM (14 years ago)
Author:
Peter
Message:

going back to previous design in which view and const_view are in different classes. Having them in same didnt work as expected. There is a problem converting vector::iterator to vector::const_iterator. I'll open a separate ticket for this issue.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/classifier/NBC.cc

    r1009 r1027  
    207207    for (size_t i=0; i<prediction.rows(); ++i){
    208208      prediction.row_vec(i) *=
    209         1.0/sum(
    210                 prediction.row_vec(i)
    211                 );
     209        1.0/sum(prediction.row_const_vec(i));
    212210    }
    213211  }
Note: See TracChangeset for help on using the changeset viewer.