Skip to content

Commit 9a42fae

Browse files
committed
Fix bug in differentiable_eval_tree_array
1 parent 9312a78 commit 9a42fae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/EvaluateEquation.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ function differentiable_eval_tree_array(
397397
n = size(cX, 2)
398398
if tree.degree == 0
399399
if tree.constant
400-
return (ones(T, n) .* (tree.val::T), true)
400+
return (ones(T, n) .* convert(T, tree.val), true)
401401
else
402402
return (cX[tree.feature, :], true)
403403
end

0 commit comments

Comments
 (0)