Learn R Programming

ML2Pvae (version 1.0.0.1)

q_constraint: A custom kernel constraint function that restricts weights between the learned distribution and output. Nonzero weights are determined by the Q matrix.

Description

A custom kernel constraint function that restricts weights between the learned distribution and output. Nonzero weights are determined by the Q matrix.

Usage

q_constraint(Q)

Arguments

Q

a binary matrix of size num_skills by num_items

Value

returns a function whose parameters match keras kernel constraint format