Ignore:
Timestamp:
Mar 19, 2010, 4:30:02 AM (14 years ago)
Author:
Peter
Message:

fixes #543

File:
1 edited

Legend:

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

    r2119 r2223  
    140140  {
    141141    assert(weighted());
    142     return MatrixLookupWeighted(kernel_->data_weighted(),column_index_,false);
     142    using utility::Index; // just to avoid long line
     143    return MatrixLookupWeighted(kernel_->data_weighted(),
     144                                Index(kernel_->data_weighted().rows()),
     145                                column_index_);
    143146  }
    144147
     
    187190    if (kernel_->weighted()){
    188191      const MatrixLookupWeighted* ms =
    189         new MatrixLookupWeighted(data_weighted(),inputs,true);
     192        new MatrixLookupWeighted(data_weighted(),inputs,
     193                                 utility::Index(data_weighted().columns()));
    190194      kernel = kernel_->make_kernel(*ms, true);
    191195    }
Note: See TracChangeset for help on using the changeset viewer.