get_ability_parameter_estimates {ML2Pvae}R Documentation

Feed forward response sets through the encoder, which outputs student ability estimates

Description

Feed forward response sets through the encoder, which outputs student ability estimates

Usage

get_ability_parameter_estimates(encoder, responses)

Arguments

encoder

a trained keras model; should be the encoder returned from either build_vae_independent() or build_vae_correlated

responses

a num_students by num_items matrix of binary responses, as used in training

Value

a list where the first entry contains student ability estimates and the second entry holds the variance (or covariance matrix) of those estimates

Examples


data <- matrix(c(1,1,0,0,1,0,1,1,0,1,1,0), nrow = 3, ncol = 4)
Q <- matrix(c(1,0,1,1,0,1,1,0), nrow = 2, ncol = 4)
models <- build_vae_independent(4, 2, Q, model_type = 2)
encoder <- models[[1]]
ability_parameter_estimates_variances <- get_ability_parameter_estimates(encoder, data)
student_ability_est <- ability_parameter_estimates_variances[[1]]


[Package ML2Pvae version 1.0.0.1 Index]