Skip to content

Commit

Permalink
GH-181: fix incorrect node splits
Browse files Browse the repository at this point in the history
  • Loading branch information
onyb committed May 20, 2021
1 parent c9aa963 commit fde8b53
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions ui/workflows/C/2/split/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,20 +70,7 @@ class Split extends Component {
}

split = (value, level, matrix) => {
for (var idx = 0; idx < matrix.length; idx++) {
let low = matrix[idx][level * 2]
let high = matrix[idx][level * 2 + 1]

low = low === '-inf' ? -Infinity : low
high = high === 'inf' ? Infinity : high

if (
parseFloat(value) >= parseFloat(low) &&
parseFloat(value) <= parseFloat(high)
) {
break
}
}
const idx = this.props.nodeMeta.idxWT

const source = [...matrix[idx]]
const newWt = [...matrix[idx]]
Expand Down

0 comments on commit fde8b53

Please sign in to comment.