You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello all, just putting here some features I had to manually add in my case, I needed to build an MLP model for a function really hard to compute and compare timings to integrate with vegas, to do so, I had to do function fun(x;model=model) @tullio xmat[j,i] := x[i][j] res = model(xmat) res[1,:] end
which create a lot of allocation for no reason, I ended up changing the code to allow a function just to be computed as fun(xmat), also, I needed to integrate the error between the function and the model, it would be a lot faster to use the previously derived grid to begin with and there wasn't the option (for exemple, in python you can use the integrator once again and begin with the grid, but you can't sample from the grid which is why I came here).
I just thought being able to use those two options (apply fun on the xmat, use lastly derived grid (result) ) would be cool. Thanks for the package by the way.
The text was updated successfully, but these errors were encountered:
Hello all, just putting here some features I had to manually add in my case, I needed to build an MLP model for a function really hard to compute and compare timings to integrate with vegas, to do so, I had to do
function fun(x;model=model) @tullio xmat[j,i] := x[i][j] res = model(xmat) res[1,:] end
which create a lot of allocation for no reason, I ended up changing the code to allow a function just to be computed as fun(xmat), also, I needed to integrate the error between the function and the model, it would be a lot faster to use the previously derived grid to begin with and there wasn't the option (for exemple, in python you can use the integrator once again and begin with the grid, but you can't sample from the grid which is why I came here).
I just thought being able to use those two options (apply fun on the xmat, use lastly derived grid (result) ) would be cool. Thanks for the package by the way.
The text was updated successfully, but these errors were encountered: