Skip to content

Commit

Permalink
Don't use tracked values here
Browse files Browse the repository at this point in the history
  • Loading branch information
ayush-1506 committed May 4, 2020
1 parent 344ebe0 commit c77f405
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/regressor.jl
Expand Up @@ -143,7 +143,7 @@ function MLJModelInterface.predict(model::Regressor, fitresult, Xnew_)
return MLJModelInterface.table(reduce(hcat, y for y in ypred)',
names=target_column_names)
else
return [chain(values.(Xnew_[i, :]))[1] for i in 1:size(Xnew_, 1)]
return [chain(values.(Xnew_[i, :]))[1].data for i in 1:size(Xnew_, 1)]
end
end

Expand Down

0 comments on commit c77f405

Please sign in to comment.