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

address slowdown in fit_xy() #1075

Merged
merged 1 commit into from
Feb 27, 2024
Merged

address slowdown in fit_xy() #1075

merged 1 commit into from
Feb 27, 2024

Conversation

simonpcouch
Copy link
Contributor

On main dev:

library(parsnip)
bench::mark(
  fit = fit_xy(linear_reg(), mtcars[2:11], mtcars[1])
)
#> # A tibble: 1 × 6
#>   expression      min   median `itr/sec` mem_alloc `gc/sec`
#>   <bch:expr> <bch:tm> <bch:tm>     <dbl> <bch:byt>    <dbl>
#> 1 fit          1.76ms   2.07ms      473.    3.95MB     32.3

With this PR:

library(parsnip)
bench::mark(
  fit = fit_xy(linear_reg(), mtcars[2:11], mtcars[1])
)
#> # A tibble: 1 × 6
#>   expression      min   median `itr/sec` mem_alloc `gc/sec`
#>   <bch:expr> <bch:tm> <bch:tm>     <dbl> <bch:byt>    <dbl>
#> 1 fit          1.27ms   1.48ms      656.    2.79MB     31.7

Created on 2024-02-27 with reprex v2.1.0

@simonpcouch simonpcouch merged commit 60f97cd into main Feb 27, 2024
6 of 7 checks passed
@simonpcouch simonpcouch deleted the speedup-fit_xy branch February 27, 2024 20:43
simonpcouch added a commit that referenced this pull request Feb 27, 2024
Copy link

This pull request has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.

@github-actions github-actions bot locked and limited conversation to collaborators Mar 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant