tests/testthat/test-optim-rprop.R

test_that("optim_rprop", {
  expect_optim_works(optim_rprop, list(lr = 0.1))
  expect_optim_works(optim_rprop, list(lr = 0.1, etas = c(0.6, 1.1)))
  expect_optim_works(optim_rprop, list(lr = 0.1, etas = c(0.6, 1.1), step_sizes = c(1e-6, 30)))
  expect_state_is_updated(optim_rprop)
})

Try the torch package in your browser

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

torch documentation built on June 7, 2023, 6:19 p.m.