Skip to content

Commit

Permalink
Fixed weight being displayed on the edge of SplitBest nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
gAldeia committed Aug 2, 2024
1 parent 8964234 commit 1bf8926
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/program/program.h
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,9 @@ template<PT PType> struct Program
// kid_id = kid_id.substr(2);

if (kid->data.get_is_weighted()
&& Isnt<NodeType::Constant, NodeType::MeanLabel, NodeType::OffsetSum>(kid->data.node_type)){
&& Isnt<NodeType::Constant, NodeType::MeanLabel,
NodeType::OffsetSum, NodeType::SplitBest>(kid->data.node_type))
{
edge_label = fmt::format("{:.2f}",kid->data.W);
}

Expand Down

0 comments on commit 1bf8926

Please sign in to comment.