Learning through deterministic assignment of hidden parameters