tests/testthat/test-as-parsed-model.R

context("parsed model")

test_that("Simple linear regression matches lm()", {
  expect_is(
    as_parsed_model(
      linear_regression_db(mtcars, wt, sample_size = 32)
    ),
    "parsed_model"
  )
})

Try the modeldb package in your browser

Any scripts or data that you put into this service are public.

modeldb documentation built on Nov. 2, 2023, 5:39 p.m.