Ignore:
Timestamp:
Mar 24, 2010, 3:40:02 PM (13 years ago)
Author:
Peter
Message:

remove usage of deprecated constructors also in templates and tests. (refs #543)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/classifier/SubsetGenerator.h

    r2210 r2226  
    77  Copyright (C) 2006 Jari Häkkinen, Peter Johansson, Markus Ringnér
    88  Copyright (C) 2007, 2008 Jari Häkkinen, Peter Johansson
    9   Copyright (C) 2009 Peter Johansson
     9  Copyright (C) 2009, 2010 Peter Johansson
    1010
    1111  This file is part of the yat library, http://dev.thep.lu.se/yat
     
    302302        // training data with no feature selection
    303303        const MatrixLookupWeighted* train_data_all_feat =
    304           new MatrixLookupWeighted(ml, training_index(k), false);
     304          new MatrixLookupWeighted(ml, utility::Index(ml.rows()),
     305                                   training_index(k));
    305306        // use these data to create feature selection
    306307        f_selector_->update(*train_data_all_feat, training_target(k));
     
    329330        if (kernel.weighted()){
    330331          MatrixLookupWeighted ml = kernel.data_weighted();
    331           f_selector_->update(MatrixLookupWeighted(ml,training_index(k),false),
     332          f_selector_->update(MatrixLookupWeighted(ml,
     333                                                   utility::Index(ml.rows()),
     334                                                   training_index(k)),
    332335                              training_target(k));
    333336        }
Note: See TracChangeset for help on using the changeset viewer.