Skip to content

Commit f4e1358

Browse files
committed
remove code for higgs
1 parent 4c5fa60 commit f4e1358

3 files changed

Lines changed: 2 additions & 14 deletions

File tree

Device/FileBuffer/FileBuffer.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ void FileBuffer::WriteBufferFile(string strFolder)
145145
writeFile.close();
146146
writeFile.clear();
147147
delete[] lDataInfo;
148+
printf("Done writing sorted data to files.\n");
148149
}
149150

150151
/**

Device/Splitter/Initiator.cu

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ __global__ void ComputeGDKernel(int numofIns, const real *pfPredValue, const rea
2828

2929

3030
pGrad[gTid] = pfPredValue[gTid] - pfTrueValue[gTid];
31-
if(pGrad[gTid] > 100 || pGrad[gTid] < -100)
32-
printf("gpu shitting............................. pfPredV=%f, true=%f, tid=%d\n", pfPredValue[gTid], pfTrueValue[gTid], gTid);
3331
pHess[gTid] = 1;
3432
}
3533

gbdt_main.cu

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,7 @@ int main(int argc, char *argv[])
9494
clock_t start_init, end_init;
9595
//read the file the first time
9696
if(bBufferFileExist == false){
97-
dataReader.GetDataInfo(strFileName, numFea, numIns, numFeaValue);
98-
//numFea = 28; numIns = 11000000; numFeaValue = 283685620;//for higgs
97+
dataReader.GetDataInfo(strFileName, numFea, numIns, numFeaValue);
9998
dataReader.ReadLibSVMAsSparse(v_vInsSparse, v_fLabel, strFileName, numFea, numIns);
10099
trainer.m_vvInsSparse = v_vInsSparse;//later used in sorting values for each feature
101100
trainer.m_vTrueValue = v_fLabel;
@@ -176,16 +175,6 @@ if(alwaysRle == true)
176175
}
177176
bagManager.m_pTrueLabel_h = pTrueLabel;
178177

179-
//print instance information
180-
int insId = 10444952;
181-
long start = plInsStartPos[insId];
182-
long end = plInsStartPos[insId + 1] - 1;
183-
printf("%f ", pTrueLabel[insId]);
184-
for(int i = start; i <= end; i++){
185-
printf("%d:%f\t", pFeaId[i], pfFeaValue[i]);
186-
}
187-
printf("\n");
188-
189178
if(testNaiveCsr == true){
190179
checkCudaErrors(cudaMallocHost((void**)&fvalue_d, sizeof(real) * numFeaValue));
191180
checkCudaErrors(cudaMallocHost((void**)&fvalue_org_d, sizeof(real) * numFeaValue));

0 commit comments

Comments
 (0)