conroylau / lpinfer

lpinfer: An R Package for Inference in Linear Programs
GNU General Public License v3.0
3 stars 5 forks source link

Allow for all objects to be stochastic in subsampling #23

Closed a-torgovitsky closed 4 years ago

a-torgovitsky commented 4 years ago

Currently we are only changing beta.obs on each re-draw.

We can allow for all of A.obs, beta.obs, A.shp, beta.shp and A.tgt to change with each draw.

Whether it does or not is determined by what the user passes. If they pass a function or a list, then it does change on each iteration, but if they pass a single value, then it does not.

conroylau commented 4 years ago

Done! This is done by the lpmodel.eval and lpmodel.beta.eval functions. I have incorporated this in the earlier updates of the module, so I am closing this issue for now. Thanks!