Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
OUTPUT:
THE EXACT VERSION TAKES 363 seconds:
100%|██████████| 150/150 [06:03<00:00, 2.42s/it]
Interpretation time:363.3058955669403
variable_name variable_value B aggregated_change index
0 f1 0.466 0.0 0.901 74.5
2 f3 0.455 0.0 0.105 74.5
6 f7 0.501 0.0 0.094 74.5
5 f6 0.508 0.0 0.056 74.5
3 f4 0.544 0.0 0.051 74.5
4 f5 0.509 0.0 0.036 74.5
7 f8 0.509 0.0 0.035 74.5
1 f2 0.502 0.0 0.027 74.5
THE APPROXIMATE VERSION TAKES 32 seconds:
100%|██████████| 150/150 [00:31<00:00, 4.70it/s]
Interpretation time:32.05052995681763
variable_name variable_value B aggregated_change index
0 f1 0.466 0.0 0.891 74.5
2 f3 0.455 0.0 0.102 74.5
6 f7 0.501 0.0 0.086 74.5
5 f6 0.508 0.0 0.055 74.5
3 f4 0.544 0.0 0.050 74.5
4 f5 0.509 0.0 0.034 74.5
7 f8 0.509 0.0 0.033 74.5
1 f2 0.502 0.0 0.026 74.5
CONCLUSION MUCH FASTER, MUCH MEMORY EFFICIENT AND ABOUT THE SAME RESULT