tests/testthat/test-kaiser-normalization.R

library(LRMF3)

test_that("vsp.Matrix normalize U", {
  expect_silent(
    vsp(
      ml100k,
      rank = 5,
      kaiser_normalize_u = TRUE
    )
  )
})

test_that("vsp.Matrix normalize V", {
  expect_silent(
    vsp(
      ml100k,
      rank = 5,
      kaiser_normalize_v = TRUE
    )
  )
})

test_that("vsp.Matrix normalize U & V", {
  expect_silent(
    vsp(
      ml100k,
      rank = 5,
      kaiser_normalize_u = TRUE,
      kaiser_normalize_v = TRUE
    )
  )
})
RoheLab/vsp documentation built on Nov. 6, 2024, 10:08 p.m.