Changeset 8706 for trunk/MagicSoft/Mars/mranforest
- Timestamp:
- 08/24/07 13:58:50 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mranforest/MRanForestCalc.cc
r8704 r8706 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MRanForestCalc.cc,v 1. 29 2007-08-24 08:33:48tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MRanForestCalc.cc,v 1.30 2007-08-24 12:58:49 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 167 167 // In the case weights should be used initialize the 168 168 // corresponding array 169 Double_t sum = 0; 170 169 171 TArrayF weights(nrows); 170 172 if (fLastDataColumnHasWeights) 173 { 171 174 for (Int_t j=0; j<nrows; j++) 172 175 { 173 176 weights[j] = matrixtrain.GetM()(j, ncols-nobs); 174 if (j%250==0) 175 cout << weights[j] << " "; 177 sum += weights[j]; 176 178 } 179 } 180 181 *fLog << inf << "MRanForestCalc::Train: Sum of weights " << sum << endl; 177 182 178 183 // Setup the matrix such that the last comlumn contains
Note:
See TracChangeset
for help on using the changeset viewer.