Ignore:
Timestamp:
Mar 5, 2006, 4:20:58 PM (16 years ago)
Author:
Peter
Message:

weights supported in CrossSplitter?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/classifier/CrossSplitter.h

    r540 r541  
    5151    ///
    5252    CrossSplitter(const Target& target, const DataLookup2D& data,
    53                   const DataLookup2D& weights,
     53                  const MatrixLookup& weight,
    5454                  const size_t N, const size_t k);
    5555
     
    111111
    112112    ///
     113    /// @return training data weight
     114    ///
     115    /// @note if state is invalid the result is undefined
     116    ///
     117    inline const DataLookup2D& training_weight(void) const
     118    { assert(more()); return *(training_weight_[state_]); }
     119
     120    ///
    113121    /// @return validation data
    114122    ///
     
    134142    { assert(more()); return validation_target_[state_]; }
    135143
     144    ///
     145    /// @return validation data weights
     146    ///
     147    /// @note if state is invalid the result is undefined
     148    ///
     149    inline const DataLookup2D& validation_weight(void) const
     150    { assert(more()); return *(validation_weight_[state_]); }
     151
    136152  private:
    137153    void build(const Target& target, size_t N, size_t k);
Note: See TracChangeset for help on using the changeset viewer.