Skip to content

Commit

Permalink
fix bug: firstFlow might be reversed if not set split(0)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluesjjw committed Jun 3, 2019
1 parent b00e3e6 commit b01417d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ object SplitFinder {
var curFlow = -1
var curSplitId = 0
val edges = ArrayBuffer[Float]()
edges += splits(0)
edges.sizeHint(FeatureInfo.ENUM_THRESHOLD)
val binGradPair = if (param.numClass == 2 || param.isMultiClassMultiTree) {
new BinaryGradPair()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ public class SplitSet extends SplitEntry {

private float[] edges;
private int firstFlow;
// edges=[x,...] firstFlow=1 => go to right if < x and go to left if > x
// edges=[x,...] firstFlow=0 => go to left if < x and go to right if > x
private int defaultFlow;

public SplitSet() {
Expand Down

2 comments on commit b01417d

@kimi132009
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

请问一下,在2.0.0版本的angel gdbt模型里面。我在小数据量可以跑通,但是大数据量,任务一直在运行。但是不挂,最后运行10多个小时后进程停止的原因是不是这个啊?

@kimi132009
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

感觉的确是第一轮就没有运行

Please sign in to comment.