Skip to content

Rust bindings for tidymodels [experimental]

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

simonpcouch/rinfa

Repository files navigation

rinfa

Lifecycle: experimental CRAN status

The goal of rinfa is to provide Rust bindings for parsnip model specifications.

Installation

You can install the development version of rinfa from GitHub with:

# install.packages("devtools")
devtools::install_github("simonpcouch/rinfa")

Example

x <- matrix(rnorm(3e7), ncol = 3)
y <- rnorm(1e7)

dat <- cbind(as.data.frame(x), y)

system.time(
  lm(y ~ ., dat)
)
#>    user  system elapsed 
#>   1.068   0.182   1.266

system.time(
  # lm()'s speedy friend
  lm.fit(x, y)
)
#>    user  system elapsed 
#>   0.384   0.031   0.416

library(rinfa)

system.time({
  .linfa_linear_reg(x, y)
})
#>    user  system elapsed 
#>   0.161   0.065   0.234

Available implementations

The rinfa package provides an additional engine "linfa" for the models in the following table:

model engine mode
decision_tree linfa classification
linear_reg linfa regression
logistic_reg linfa classification
multinom_reg linfa classification
naive_Bayes linfa classification
svm_linear linfa classification

About

Rust bindings for tidymodels [experimental]

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published