We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c59bb97 commit d6c20f0Copy full SHA for d6c20f0
src/model_matrix.jl
@@ -19,7 +19,7 @@ end
19
function _feature_columns(cont_vars, cat_vars, f::ProductFeature, nk)
20
ks = keys(cont_vars)
21
n = length(cont_vars)
22
- mapreduce(vcat, 1:(n-1)) do i
+ mapreduce(vcat, 1:(n-1); init = Maxnet.ModelMatrixColumn[]) do i
23
mapreduce(vcat, i+1:n) do j
24
ModelMatrixColumn(f, ks[i], (ks[j], ))
25
end
0 commit comments