Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement parallelization #159

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Commits on May 8, 2024

  1. Implement parallelization

    Suggesting an improvement by adding parallelization for scaling using furrr::future_map function. On my end, resulting scaled df is identical with or without using parallel mode.
    
    Also, using  dispersion default value of 0.000001 instead of 0 to avoid NaN for entries not divisible by zero.
    
    ```
            dispersion <-
              stratum %>%
              dplyr::summarise_at(.funs = dispersion, .vars = variables) %>%
              dplyr::mutate(across(everything(), ~ if_else(. == 0, 0.000001, .))) %>%
              dplyr::collect()
    ```
    sbamin authored May 8, 2024
    Configuration menu
    Copy the full SHA
    43b979e View commit details
    Browse the repository at this point in the history