Skip to content

Commit

Permalink
restore legacy-compatible dataformat
Browse files Browse the repository at this point in the history
  • Loading branch information
bendavid committed May 7, 2014
1 parent a236863 commit 0bcf3d1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions interface/HybridGBRTreeD.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
std::vector<double> &Responses() { return fResponses; }
const std::vector<double> &Responses() const { return fResponses; }

std::vector<unsigned short> &CutIndices() { return fCutIndices; }
const std::vector<unsigned short> &CutIndices() const { return fCutIndices; }
std::vector<unsigned char> &CutIndices() { return fCutIndices; }
const std::vector<unsigned char> &CutIndices() const { return fCutIndices; }

std::vector<float> &CutVals() { return fCutVals; }
const std::vector<float> &CutVals() const { return fCutVals; }
Expand All @@ -59,7 +59,7 @@
const std::vector<std::vector<std::pair<float,float> > > &Limits() const { return fLimits; }

protected:
std::vector<unsigned short> fCutIndices;
std::vector<unsigned char> fCutIndices;
std::vector<float> fCutVals;
std::vector<int> fLeftIndices;
std::vector<int> fRightIndices;
Expand All @@ -68,7 +68,7 @@

private:

ClassDef(HybridGBRTreeD,3)
ClassDef(HybridGBRTreeD,2)

};

Expand All @@ -78,7 +78,7 @@ inline int HybridGBRTreeD::TerminalIndex(const float* vector) const {

int index = 0;

unsigned short cutindex = fCutIndices[0];
unsigned char cutindex = fCutIndices[0];
float cutval = fCutVals[0];

while (true) {
Expand Down

0 comments on commit 0bcf3d1

Please sign in to comment.