Conversation
|
Small setup differences with respect to https://github.com/MotionbyLearning/example_scripts/blob/main/solution_large_design_matrix/dask_array_sparse_mat.ipynb :
|
|
|
|
@rogerkuou I have updated the notebook, lowering the tolerance parameters in the optimization, so that the sparse approach gives identical results (e.g. results that are Concerning the direct comparison of |
|
@fnattino Thanks a lot for the nice solution! As we already discussed, the x estimator does not make sense for now since we are randomly simutaing y in this example. I created #6 , inheriting all your work. In that PR I made another solution notebook in ith a more sensibly simultade arcs. Now we can conclude that this solution does give mathematically sensible solution for both weight and non-weighted y, and is computationally efficient. I will merge #6 and close this one |
I have worked out an example similar to what illustrated in https://github.com/MotionbyLearning/example_scripts/blob/main/solution_large_design_matrix/dask_array_sparse_mat.ipynb, but using only numpy and/or scipy. If I am not missing anything, by using scipy.sparse one seems to be able to solve a system of the same size in
<3 sec(EDIT: "a few seconds" - if the tolerance is lowered in order to get equal accuracy to the "dense" counterpart, this takes ~5 secs).