The parameter `num_inputs` is redundant and can be inferred directly from the `cardinalities` parameter,