The C++ code shown on my IDE (VSCode) is very messy so I used autoformat to make it look cleaner, but it resulted in a lot of line changes to the original file.
I tested with the following commands
I know this is one of the worst settings in the world, but it worked.
The actual changes in this commit:
DataTypes.h: add isMissingTrackLeft to struct NodeTree.h: set tree[nodeID].isMissTrackLeft = true in processInnerNodes() and processLeafNodes(); change isMissingTrackLeft in processRelations(); combine two prediction loops in predict(); add logic for missing values in predict().
FFMatrixUtils.cc: modify the loop to process each line (starting from line 373): first, combine the remainder with the main loop body; add logic to set value to std::nan("") for missing values.
The C++ code shown on my IDE (VSCode) is very messy so I used autoformat to make it look cleaner, but it resulted in a lot of line changes to the original file. I tested with the following commands
I know this is one of the worst settings in the world, but it worked.
The actual changes in this commit:
DataTypes.h
: addisMissingTrackLeft
to structNode
Tree.h
: settree[nodeID].isMissTrackLeft = true
inprocessInnerNodes()
andprocessLeafNodes()
; changeisMissingTrackLeft
inprocessRelations()
; combine two prediction loops inpredict()
; add logic for missing values inpredict()
.FFMatrixUtils.cc
: modify the loop to process each line (starting from line 373): first, combine the remainder with the main loop body; add logic to set value tostd::nan("")
for missing values.