Ignore:
Timestamp:
08/24/07 13:58:50 (17 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mranforest/MRanForestCalc.cc

    r8704 r8706  
    11/* ======================================================================== *\
    2 ! $Name: not supported by cvs2svn $:$Id: MRanForestCalc.cc,v 1.29 2007-08-24 08:33:48 tbretz Exp $
     2! $Name: not supported by cvs2svn $:$Id: MRanForestCalc.cc,v 1.30 2007-08-24 12:58:49 tbretz Exp $
    33! --------------------------------------------------------------------------
    44!
     
    167167        // In the case weights should be used initialize the
    168168        // corresponding array
     169        Double_t sum = 0;
     170
    169171        TArrayF weights(nrows);
    170172        if (fLastDataColumnHasWeights)
     173        {
    171174            for (Int_t j=0; j<nrows; j++)
    172175            {
    173176                weights[j] = matrixtrain.GetM()(j, ncols-nobs);
    174                 if (j%250==0)
    175                     cout << weights[j] << " ";
     177                sum += weights[j];
    176178            }
     179        }
     180
     181        *fLog << inf << "MRanForestCalc::Train: Sum of weights " << sum << endl;
    177182
    178183        // Setup the matrix such that the last comlumn contains
Note: See TracChangeset for help on using the changeset viewer.